Permalink
Browse files

Removed checkstyle empty block check.

- Removed EmptyBlock checkstyle check since it triggered for cases where it is not necessarily bad.
- Removed several empty blocks where they were not necessary.
  • Loading branch information...
Pieter12345 committed Apr 30, 2018
1 parent 726aac8 commit f4889ab629dacdf2a2522a3a6f55532606d70969
@@ -24,7 +24,6 @@
</module>
<module name="AvoidStarImport"/>
<module name="EmptyBlock"/>
</module>
@@ -104,12 +104,13 @@ private void run() {
// }
} catch(IOException ex) {
Logger.getLogger(MemoryMapFileUtil.class.getName()).log(Level.SEVERE, null, ex);
} finally {
}
// finally {
// if(temp != null){
// temp.delete();
// temp.deleteOnExit();
// }
}
// }
}
} finally {
synchronized(this) {
@@ -259,12 +259,12 @@ public TokenStream lex() throws ConfigCompileException {
if(c == '*' && c2 == '/') {
state_in_block_comment = false;
i++;
if(state_in_smart_block_comment) {
//We need to process the block comment here
//TODO:
//We need to process the block comment here
//TODO:
}
// if(state_in_smart_block_comment) {
// //We need to process the block comment here
// //TODO:
// //We need to process the block comment here
// //TODO:
// }
clearBuffer();
continue;
}
@@ -1075,9 +1075,9 @@ public boolean matches(Map<String, Construct> prefilter, BindableEvent e) throws
if(e instanceof MCPlayerInteractEvent) {
MCPlayerInteractEvent pie = (MCPlayerInteractEvent) e;
Prefilters.match(prefilter, "location", pie.getClickedBlock().getLocation(), PrefilterType.LOCATION_MATCH);
if(prefilter.containsKey("activated")) {
//TODO: Once activation is supported, check for that here
}
// if(prefilter.containsKey("activated")) {
// //TODO: Once activation is supported, check for that here
// }
return true;
}
return false;
@@ -770,11 +770,11 @@ public ParseTree optimizeDynamic(Target t, List<ParseTree> children, FileOptions
if(complex.matches("[a-zA-Z0-9_]+")) {
//This is a simple variable name.
root.addChild(new ParseTree(new IVariable("@" + complex, t), fileOptions));
continue;
} else {
//Complex variable name, with arrays (or perhaps an error case)
continue;
}
continue;
}
b.append(c);
}

0 comments on commit f4889ab

Please sign in to comment.