Comments (4)
@soimkim
Thank you! I sent PR. Can you check it?
from fosslight.
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
- lombok @slf4j feature : https://projectlombok.org/features/log
- IntellJ IDE
from fosslight.
Wow~!
@riyenas0925 , Please upload PR to develop branch. 👍
from fosslight.
Fixed by @riyenas0925 👍
from fosslight.
Related Issues (20)
- Korean is broken in PDF HOT 2
- Test code of "LicenseController" LICENSE.SAVE_AJAX, LICENSE.DELETE_COMMENT HOT 3
- Test code of "LicenseController" LICENSE.SAVE_AJAX, LICENSE.DELETE_COMMENT HOT 3
- Test code of "LicenseController" LICENSE.SAVE_COMMEN, LICENSE.LICENSE_TEXTT HOT 2
- Test code of "LicenseController" LICENSE.AUTOCOMPLETE_AJAX, LICENSE.LICENSE_ID HOT 2
- Test code of "LicenseController" LICENSE.LICENSE_BULK_REG,
- Test code of "LicenseController" LICENSE.BULK_VALIDATION
- Test code of "LicenseController" LICENSE.CSV_FILE
- Extended Check OSS Name function HOT 3
- fetch the base-check-commit-message.yml from the .github HOT 1
- Remove v from OSS Version HOT 4
- Vulnerability > Recalculated/Discovered mail table format change HOT 3
- Send notification mail for security vulnerability sync operation result HOT 4
- Change Docker Image Build Method from Dockerfile to Jib HOT 3
- `@Transactional` and `@CacheEvict` annotations not working on private methods HOT 8
- Replace HttpURLConnection with RestTemplate HOT 8
- Testing builds through service containers in GitHub Actions
- OSS List > Vulnerability Search > Rows that do not meet vulnerability search conditions HOT 2
- nvd 업데이트 오류 HOT 3
- Project > Identification > When requesting, N/A is automatically checked if there are no rows written in the 3rd, Dep, SRC, and BIN tabs.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fosslight.