Skip to content

Commit 5dcc2b7

Browse files
committed
Remove deprecation warnings by adding @deprecated explicitly
1 parent 3f9c48e commit 5dcc2b7

File tree

8 files changed

+11
-1
lines changed

8 files changed

+11
-1
lines changed

exist-core/src/main/java/org/exist/collections/triggers/FilteringTrigger.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
*
3030
* @deprecated use SAXTrigger
3131
*/
32+
@Deprecated
3233
public abstract class FilteringTrigger extends SAXTrigger {
3334

3435
}

exist-core/src/main/java/org/exist/scheduler/UserXQueryJob.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ public String getXQueryResource() {
117117
* @return The User for this Job
118118
* @deprecated use getCurrentSubject method
119119
*/
120+
@Deprecated
120121
public Subject getUser() {
121122
return subject;
122123
}

exist-core/src/main/java/org/exist/security/User.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ public interface User extends Principal {
103103
* @return The users password
104104
* @deprecated
105105
*/
106+
@Deprecated
106107
String getPassword();
107108

108109
@Deprecated

exist-core/src/main/java/org/exist/security/internal/AccountImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ public AccountImpl(final AbstractRealm realm, final Configuration configuration,
241241
* @return Description of the Return Value
242242
* @deprecated
243243
*/
244-
@Override
244+
@Override @Deprecated
245245
public final String getPassword() {
246246
return password;
247247
}

exist-core/src/main/java/org/exist/storage/BrokerPool.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,7 @@ public ThreadGroup getThreadGroup() {
843843
* @deprecated use countActiveBrokers
844844
*/
845845
//TODO : rename as getActiveBrokers ?
846+
@Deprecated
846847
public int active() {
847848
return activeBrokers.size();
848849
}

exist-core/src/main/java/org/exist/util/ByteConversion.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public class ByteConversion {
4242
* @deprecated reads the lowest byte first. will be replaced with
4343
* {@link #byteToIntH(byte[], int)} for consistency.
4444
*/
45+
@Deprecated
4546
public final static int byteToInt(final byte[] data, final int start ) {
4647
return ( data[start] & 0xff ) |
4748
( ( data[start + 1] & 0xff ) << 8 ) |
@@ -144,6 +145,7 @@ public final static long byteToLong(final ByteBuffer buf) {
144145
*
145146
* @return the short integer
146147
*/
148+
@Deprecated
147149
public final static short byteToShort( final byte[] data, final int start ) {
148150
return (short) ( ( ( data[start + 1] & 0xff ) << 8 ) |
149151
( data[start] & 0xff ) );
@@ -190,6 +192,7 @@ public final static short byteToShortH(final ByteBuffer buf) {
190192
* @param start the offset
191193
* @return the byte array
192194
*/
195+
@Deprecated
193196
public final static byte[] intToByte( final int v, final byte[] data, final int start ) {
194197
data[start] = (byte) ( ( v >>> 0 ) & 0xff );
195198
data[start + 1] = (byte) ( ( v >>> 8 ) & 0xff );
@@ -302,6 +305,7 @@ public final static byte[] longToByte( final long v ) {
302305
* @param start the offset
303306
* @return the byte array
304307
*/
308+
@Deprecated
305309
public final static byte[] shortToByte( final short v, final byte[] data, final int start ) {
306310
data[start] = (byte) ( ( v >>> 0 ) & 0xff );
307311
data[start + 1] = (byte) ( ( v >>> 8 ) & 0xff );

exist-core/src/main/java/org/exist/util/NamedThreadFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public NamedThreadFactory(final String instanceId, final String nameBase) {
6868
*
6969
* @deprecated use {@link #NamedThreadFactory(Database, String)}.
7070
*/
71+
@Deprecated
7172
public NamedThreadFactory(final Database database, final String nameBase) {
7273
this(database.getThreadGroup(), database.getId(), nameBase);
7374
}

exist-core/src/main/java/org/exist/xmldb/RemoteXMLResource.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ public RemoteXMLResource(final RemoteCollection parent, final XmldbURI docId, fi
110110
* @throws XMLDBException if an error occurs during construction
111111
* @deprecated Use {@link #RemoteXMLResource(RemoteCollection, int, int, XmldbURI, Optional, Optional)}.
112112
*/
113+
@Deprecated
113114
public RemoteXMLResource(final RemoteCollection parent, final XmldbURI docId, final Optional<String> id, final Optional<String> type)
114115
throws XMLDBException {
115116
this(parent, -1, -1, docId, id, type);

0 commit comments

Comments
 (0)