private float threshold;
public LightDetector(LightListener lightListener) {
threshold = 3.0f;
this.lightListener = lightListener;
}
<BUG>void init(float threshold, LightListener lightListener) {
</BUG>
this.threshold = threshold;
this.lightListener = lightListener;
}

private float threshold;
public LightDetector(LightListener lightListener) {
threshold = 3.0f;
this.lightListener = lightListener;
}
public LightDetector(float threshold, LightListener lightListener) {
this.threshold = threshold;
this.lightListener = lightListener;
}
