FindBugs fixes

This commit is contained in:
serso 2014-09-08 19:02:41 +02:00
parent 020c44dba8
commit 0a861d11c7
2 changed files with 5 additions and 7 deletions

View File

@ -124,7 +124,7 @@
<entry key="InfiniteRecursiveLoop" value="true" /> <entry key="InfiniteRecursiveLoop" value="true" />
<entry key="InheritanceUnsafeGetResource" value="true" /> <entry key="InheritanceUnsafeGetResource" value="true" />
<entry key="InitializationChain" value="true" /> <entry key="InitializationChain" value="true" />
<entry key="InitializeNonnullFieldsInConstructor" value="true" /> <entry key="InitializeNonnullFieldsInConstructor" value="false" />
<entry key="InstantiateStaticClass" value="true" /> <entry key="InstantiateStaticClass" value="true" />
<entry key="IntCast2LongAsInstant" value="true" /> <entry key="IntCast2LongAsInstant" value="true" />
<entry key="InvalidJUnitTest" value="true" /> <entry key="InvalidJUnitTest" value="true" />

View File

@ -23,12 +23,10 @@
package org.solovyev.android.calculator; package org.solovyev.android.calculator;
import jscl.math.operator.Operator; import jscl.math.operator.Operator;
import javax.annotation.Nonnull;
import org.solovyev.common.JBuilder; import org.solovyev.common.JBuilder;
import org.solovyev.common.math.MathRegistry; import org.solovyev.common.math.MathRegistry;
import javax.annotation.Nonnull;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
@ -82,7 +80,7 @@ public class CalculatorPostfixFunctionsRegistry extends AbstractCalculatorMathRe
@Nonnull @Nonnull
@Override @Override
protected JBuilder<? extends Operator> createBuilder(@Nonnull MathPersistenceEntity entity) { protected JBuilder<? extends Operator> createBuilder(@Nonnull MathPersistenceEntity entity) {
return null; //To change body of implemented methods use File | Settings | File Templates. throw new UnsupportedOperationException();
} }
@Override @Override
@ -92,12 +90,12 @@ public class CalculatorPostfixFunctionsRegistry extends AbstractCalculatorMathRe
@Override @Override
protected MathPersistenceEntity transform(@Nonnull Operator entity) { protected MathPersistenceEntity transform(@Nonnull Operator entity) {
return null; //To change body of implemented methods use File | Settings | File Templates. return null;
} }
@Nonnull @Nonnull
@Override @Override
protected MathEntityPersistenceContainer<MathPersistenceEntity> createPersistenceContainer() { protected MathEntityPersistenceContainer<MathPersistenceEntity> createPersistenceContainer() {
return null; //To change body of implemented methods use File | Settings | File Templates. throw new UnsupportedOperationException();
} }
} }