Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-462

Cleanup type casting warnings in core build.

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.3
    • Labels:
      None

      Description

      compile-core:
      [javac] Compiling 41 source files to /home/jon/flume/build/classes
      [javac] /home/jon/flume/src/java/com/cloudera/flume/agent/diskfailover/DiskFailoverDeco.java:75: warning: [unchecked] unchecked call to LazyOpenDecorator(S) as a member of the raw type com.cloudera.flume.handlers.debug.LazyOpenDecorator
      [javac] super((S) new LazyOpenDecorator(s));
      [javac] ^
      [javac] /home/jon/flume/src/java/com/cloudera/flume/agent/diskfailover/DiskFailoverDeco.java:75: warning: [unchecked] unchecked cast
      [javac] found : com.cloudera.flume.handlers.debug.LazyOpenDecorator
      [javac] required: S
      [javac] super((S) new LazyOpenDecorator(s));
      [javac] ^
      [javac] /home/jon/flume/src/java/com/cloudera/flume/agent/diskfailover/DiskFailoverDeco.java:83: warning: [unchecked] unchecked call to LazyOpenDecorator(S) as a member of the raw type com.cloudera.flume.handlers.debug.LazyOpenDecorator
      [javac] this.sink = (S) new LazyOpenDecorator(sink);
      [javac] ^
      [javac] /home/jon/flume/src/java/com/cloudera/flume/agent/diskfailover/DiskFailoverDeco.java:83: warning: [unchecked] unchecked cast
      [javac] found : com.cloudera.flume.handlers.debug.LazyOpenDecorator
      [javac] required: S
      [javac] this.sink = (S) new LazyOpenDecorator(sink);
      [javac] ^
      [javac] /home/jon/flume/src/java/com/cloudera/flume/agent/durability/NaiveFileWALDeco.java:85: warning: [unchecked] unchecked call to LazyOpenDecorator(S) as a member of the raw type com.cloudera.flume.handlers.debug.LazyOpenDecorator
      [javac] this.drainSink = (EventSinkDecorator<S>) new LazyOpenDecorator(
      [javac] ^
      [javac] /home/jon/flume/src/java/com/cloudera/flume/agent/durability/NaiveFileWALDeco.java:85: warning: [unchecked] unchecked cast
      [javac] found : com.cloudera.flume.handlers.debug.LazyOpenDecorator
      [javac] required: com.cloudera.flume.core.EventSinkDecorator<S>
      [javac] this.drainSink = (EventSinkDecorator<S>) new LazyOpenDecorator(
      [javac] ^
      [javac] /home/jon/flume/src/java/com/cloudera/flume/agent/durability/NaiveFileWALDeco.java:285: warning: [unchecked] unchecked cast
      [javac] found : com.cloudera.flume.handlers.debug.LazyOpenDecorator<com.cloudera.flume.core.EventSink>
      [javac] required: S
      [javac] this.drainSink.setSink((S) new LazyOpenDecorator<EventSink>(
      [javac] ^
      [javac] Note: /home/jon/flume/src/java/com/cloudera/flume/agent/FlumeNode.java uses or overrides a deprecated API.
      [javac] Note: Recompile with -Xlint:deprecation for details.
      [javac] 7 warnings

        Attachments

          Activity

            People

            • Assignee:
              jmhsieh Jonathan Hsieh
              Reporter:
              jmhsieh Jonathan Hsieh
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: