Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-1660

geode-core:compileTestJava generates compile warnings

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0-incubating
    • general
    • None

    Description

      :geode-core:compileTestJava
      /Users/klund/dev/gemfire/open/geode-core/src/test/java/com/gemstone/gemfire/internal/logging/log4j/LogWriterAppenderJUnitTest.java:188: warning: non-varargs call of varargs method with inexact argument type for last parameter;
      LogEvent event = Log4jLogEvent.newBuilder().setLevel(Level.INFO).setLoggerFqcn("NAME").setLoggerName("NAME").setMessage(new ParameterizedMessage("LOGEVENT MESSAGE", null)).build();
      ^
      cast to Object for a varargs call
      cast to Object[] for a non-varargs call and to suppress this warning
      /Users/klund/dev/gemfire/open/geode-core/src/test/java/com/gemstone/gemfire/security/templates/LdapUserAuthenticator.java:89: warning: LdapCtxFactory is internal proprietary API and may be removed in a future release
      env.put(Context.INITIAL_CONTEXT_FACTORY, com.sun.jndi.ldap.LdapCtxFactory.class.getName());
      ^
      Note: Some input files use or override a deprecated API.
      Note: Recompile with -Xlint:deprecation for detail

      Attachments

        Issue Links

          Activity

            People

              gmeilen Grace Meilen
              klund Kirk Lund
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: