Giter Club home page Giter Club logo

Comments (4)

riyenas0925 avatar riyenas0925 commented on June 19, 2024 1

@soimkim
Thank you! I sent PR. Can you check it?

from fosslight.

riyenas0925 avatar riyenas0925 commented on June 19, 2024

@soimkim

System Environment

  • macOS
  • IntelliJ

because the @slf4j annotation itself creates the following code (Creates private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LogExample.class);), there is a duplicate with the log field inside the class.

To solve this, deleting the @slf4j annotation or deleting the log field inside the class seems to get rid of the warning.

Can I edit this and post a PR?

I am not good at English, so I would appreciate your understanding. 😭

before

9:32:01 오후: Executing tasks ':classes :testClasses'...


> Task :compileJava
/Users/riyenas0925/Project/fosslight/src/main/java/oss/fosslight/service/NvdDataService.java:40: warning: Field 'log' already exists.
@Slf4j
^
/Users/riyenas0925/Project/fosslight/src/main/java/oss/fosslight/scheduler/SchedulerWorkerTask.java:35: warning: Field 'log' already exists.
@Slf4j
^
2 warnings

> Task :processResources UP-TO-DATE
> Task :classes
> Task :compileTestJava NO-SOURCE
> Task :processTestResources NO-SOURCE
> Task :testClasses UP-TO-DATE

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.8.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 6s
2 actionable tasks: 1 executed, 1 up-to-date
9:32:08 오후: Tasks execution finished ':classes :testClasses'.

after (After removing @slf4j Annotation)

9:32:54 오후: Executing tasks ':classes :testClasses'...

> Task :compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :processResources UP-TO-DATE
> Task :classes
> Task :compileTestJava NO-SOURCE
> Task :processTestResources NO-SOURCE
> Task :testClasses UP-TO-DATE

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.8.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 43s
2 actionable tasks: 1 executed, 1 up-to-date
9:33:38 오후: Tasks execution finished ':classes :testClasses'.

Reference

from fosslight.

soimkim avatar soimkim commented on June 19, 2024

Wow~!
@riyenas0925 , Please upload PR to develop branch. 👍

from fosslight.

soimkim avatar soimkim commented on June 19, 2024

Fixed by @riyenas0925 👍

from fosslight.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.