Commits

Anonymous committed 40c23cd

Fix checkstyle

Comments (0)

Files changed (2)

src/main/java/net/chempound/ext/fourstore/HasResultsHandler.java

 
     private static final String RESULT = "result";
 
-    private boolean hasResults = false;
+    private boolean hasResults;
 
     @Override
     public void startElement(final String uri, final String localName, final String qName, final Attributes attributes) throws SAXException {

src/main/java/net/chempound/ext/fourstore/ModelBuildingHandler.java

 
 public class ModelBuildingHandler extends DefaultHandler {
 
-    private static enum Binding {SUBJECT, PREDICATE, OBJECT}
+    private static enum Binding { SUBJECT, PREDICATE, OBJECT }
 
     private final ResultsHandler resultsHandler = new ResultsHandler();
     private final ResultHandler resultHandler = new ResultHandler();
             case OBJECT:
                 object = ResourceFactory.createResource(uri);
                 break;
+
+            default:
+                throw new IllegalStateException("Unexpected binding: " + currentBinding);
         }
     }
 
             case OBJECT:
                 object = getBNode(uri);
                 break;
+
+            default:
+                throw new IllegalStateException("Unexpected binding: " + currentBinding);
         }
     }
 
             case OBJECT:
                 object = ResourceFactory.createPlainLiteral(value);
                 break;
+
+            default:
+                throw new IllegalStateException("Unexpected binding: " + currentBinding);
         }
     }