Created
February 21, 2012 19:00
-
-
Save buzztaiki/1878158 to your computer and use it in GitHub Desktop.
javac shows deprecation warnings when @DeleGate annotation used with deprecated method.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import lombok.Delegate; | |
| import java.sql.ResultSet; | |
| public class LombokDelegateOnDeprecateSample { | |
| private static class MyResultSet { | |
| @Delegate private final ResultSet rs; | |
| public MyResultSet(ResultSet rs) { | |
| this.rs = rs; | |
| } | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$ javac -Xlint:deprecation -cp lombok.jar LombokDelegateOnDeprecateSample.java
warning: [deprecation] getBigDecimal(int,int) in ResultSet has been deprecated
warning: [deprecation] getUnicodeStream(int) in ResultSet has been deprecated
warning: [deprecation] getBigDecimal(String,int) in ResultSet has been deprecated
warning: [deprecation] getUnicodeStream(String) in ResultSet has been deprecated
4 warnings