Commits

Fredrik Johansson committed edf8385

Added suppress warnings to protocol factory and enums class

  • Participants
  • Parent commits 53d2248

Comments (0)

Files changed (1)

File maven/protocol-generator-plugin/src/main/scripts/java_generator.rb

   end
   
   def object_factory(structs, version)
+    wi("@SuppressWarnings(\"unused\")")
     wi("public final class ProtocolObjectFactory implements com.cubeia.firebase.io.ObjectFactory {")
     wi("public int version() {",1)
     wi("return #{version};",2)
   end
   
   def JavaOut.generate_enums(f, enums)
+    wi("@SuppressWarnings(\"unused\")")
     f.write("public final class Enums {\n")
     f.write("    private Enums() {}\n\n")
     enums.each_pair do |enum, values|