Skip to content

Commit

Permalink
Sonarqube Fixes eclipse-ee4j#1603
Browse files Browse the repository at this point in the history
eclipse-ee4j#1603
Fixed version in @deprecated annotations.

Signed-off-by: Steve Davidson <[email protected]>
  • Loading branch information
gorky committed Feb 17, 2022
1 parent 2d8f114 commit 44dbf46
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public Collection<JAnnotationValue> annotations2() {
* @deprecated
* use {@link #annotate}
*/
@Deprecated(since="4.0.0-SNAPSHOT", forRemoval=true)
@Deprecated(since="2.3", forRemoval=true)
public JAnnotationArrayMember param (JAnnotationUse value ){
values.add(value);
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static String format( String property, Object[] args ) {
/**
* @deprecated use ERR_MISSING_OBJECT2
*/
@Deprecated(since="4.0.0-SNAPSHOT", forRemoval=true)
@Deprecated(since="2.0", forRemoval=true)
public static final String ERR_MISSING_OBJECT = // 0 args
"SAXMarshaller.MissingObject";

Expand All @@ -84,14 +84,14 @@ static String format( String property, Object[] args ) {
/**
* @deprecated only used from 1.0
*/
@Deprecated(since="4.0.0-SNAPSHOT", forRemoval=true)
@Deprecated(since="2.0", forRemoval=true)
public static final String ERR_DANGLING_IDREF = // 1 arg
"SAXMarshaller.DanglingIDREF";

/**
* @deprecated only used from 1.0
*/
@Deprecated(since="4.0.0-SNAPSHOT", forRemoval=true)
@Deprecated(since="2.0", forRemoval=true)
public static final String ERR_NOT_IDENTIFIABLE = // 0 args
"SAXMarshaller.NotIdentifiable";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public void scan( Element e) throws SAXException {
* @deprecated in JAXB 2.0
* Use {@link #scan(Element)}
*/
@Deprecated(since="4.0.0-SNAPSHOT", forRemoval=true)
@Deprecated(since="2.0", forRemoval=true)
public void parse( Element e, ContentHandler handler ) throws SAXException {
// it might be better to set receiver at the constructor.
receiver = handler;
Expand All @@ -143,7 +143,7 @@ public void parse( Element e, ContentHandler handler ) throws SAXException {
* @deprecated in JAXB 2.0
* Use {@link #scan(Element)}
*/
@Deprecated(since="4.0.0-SNAPSHOT", forRemoval=true)
@Deprecated(since="2.0", forRemoval=true)
public void parseWithContext( Element e, ContentHandler handler ) throws SAXException {
setContentHandler(handler);
scan(e);
Expand Down
2 changes: 1 addition & 1 deletion jaxb-ri/xsom/src/main/java/com/sun/xml/xsom/XSSchema.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public interface XSSchema extends XSComponent
* this method from {@link XSSchema} and not from {@link XSComponent},
* there's something wrong with your code.
*/
@Deprecated(since="4.0.0-SNAPSHOT", forRemoval=true)
@Deprecated(since="2.3", forRemoval=true)
SchemaDocument getSourceDocument();

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public char readChar() throws java.io.IOException
* @deprecated
* @see #getEndColumn
*/
@Deprecated(since="4.0.0-SNAPSHOT", forRemoval=true)
@Deprecated(since="2.3", forRemoval=true)
public int getColumn() {
return bufcolumn[bufpos];
}
Expand All @@ -221,7 +221,7 @@ public int getColumn() {
* @deprecated
* @see #getEndLine
*/
@Deprecated(since="4.0.0-SNAPSHOT", forRemoval=true)
@Deprecated(since="2.3", forRemoval=true)
public int getLine() {
return bufline[bufpos];
}
Expand Down

0 comments on commit 44dbf46

Please sign in to comment.