Skip to content

Commit

Permalink
Merge pull request #5382 from dizzzz/feature/reduceWarningsDuringBuild
Browse files Browse the repository at this point in the history
[ignore] reduce build warnings
  • Loading branch information
reinhapa authored Jul 31, 2024
2 parents f90a462 + 5dcc2b7 commit bd8b4eb
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 8 deletions.
20 changes: 20 additions & 0 deletions exist-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,26 @@ The BaseX Team. The original license statement is also included below.]]></pream
</executions>
</plugin>

<plugin>
<groupId>software.xdev</groupId>
<artifactId>find-and-replace-maven-plugin</artifactId>
<executions>
<execution>
<id>replace-underscore-with-hyphen</id>
<phase>process-sources</phase>
<goals>
<goal>file-contents</goal>
</goals>
<configuration>
<baseDir>target/generated-sources/antlr/org/exist/xquery/parser/</baseDir>
<fileMask>XQueryLexer.java</fileMask>
<findRegex>new Integer</findRegex>
<replaceValue>Integer.valueOf</replaceValue>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
*
* @deprecated use SAXTrigger
*/
@Deprecated
public abstract class FilteringTrigger extends SAXTrigger {

}
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ public String getXQueryResource() {
* @return The User for this Job
* @deprecated use getCurrentSubject method
*/
@Deprecated
public Subject getUser() {
return subject;
}
Expand Down
1 change: 1 addition & 0 deletions exist-core/src/main/java/org/exist/security/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public interface User extends Principal {
* @return The users password
* @deprecated
*/
@Deprecated
String getPassword();

@Deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public AccountImpl(final AbstractRealm realm, final Configuration configuration,
* @return Description of the Return Value
* @deprecated
*/
@Override
@Override @Deprecated
public final String getPassword() {
return password;
}
Expand Down
1 change: 1 addition & 0 deletions exist-core/src/main/java/org/exist/storage/BrokerPool.java
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,7 @@ public ThreadGroup getThreadGroup() {
* @deprecated use countActiveBrokers
*/
//TODO : rename as getActiveBrokers ?
@Deprecated
public int active() {
return activeBrokers.size();
}
Expand Down
4 changes: 4 additions & 0 deletions exist-core/src/main/java/org/exist/util/ByteConversion.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public class ByteConversion {
* @deprecated reads the lowest byte first. will be replaced with
* {@link #byteToIntH(byte[], int)} for consistency.
*/
@Deprecated
public final static int byteToInt(final byte[] data, final int start ) {
return ( data[start] & 0xff ) |
( ( data[start + 1] & 0xff ) << 8 ) |
Expand Down Expand Up @@ -144,6 +145,7 @@ public final static long byteToLong(final ByteBuffer buf) {
*
* @return the short integer
*/
@Deprecated
public final static short byteToShort( final byte[] data, final int start ) {
return (short) ( ( ( data[start + 1] & 0xff ) << 8 ) |
( data[start] & 0xff ) );
Expand Down Expand Up @@ -190,6 +192,7 @@ public final static short byteToShortH(final ByteBuffer buf) {
* @param start the offset
* @return the byte array
*/
@Deprecated
public final static byte[] intToByte( final int v, final byte[] data, final int start ) {
data[start] = (byte) ( ( v >>> 0 ) & 0xff );
data[start + 1] = (byte) ( ( v >>> 8 ) & 0xff );
Expand Down Expand Up @@ -302,6 +305,7 @@ public final static byte[] longToByte( final long v ) {
* @param start the offset
* @return the byte array
*/
@Deprecated
public final static byte[] shortToByte( final short v, final byte[] data, final int start ) {
data[start] = (byte) ( ( v >>> 0 ) & 0xff );
data[start + 1] = (byte) ( ( v >>> 8 ) & 0xff );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public NamedThreadFactory(final String instanceId, final String nameBase) {
*
* @deprecated use {@link #NamedThreadFactory(Database, String)}.
*/
@Deprecated
public NamedThreadFactory(final Database database, final String nameBase) {
this(database.getThreadGroup(), database.getId(), nameBase);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public RemoteXMLResource(final RemoteCollection parent, final XmldbURI docId, fi
* @throws XMLDBException if an error occurs during construction
* @deprecated Use {@link #RemoteXMLResource(RemoteCollection, int, int, XmldbURI, Optional, Optional)}.
*/
@Deprecated
public RemoteXMLResource(final RemoteCollection parent, final XmldbURI docId, final Optional<String> id, final Optional<String> type)
throws XMLDBException {
this(parent, -1, -1, docId, id, type);
Expand Down
18 changes: 11 additions & 7 deletions exist-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,11 @@

<pluginManagement>
<plugins>
<plugin>
<groupId>software.xdev</groupId>
<artifactId>find-and-replace-maven-plugin</artifactId>
<version>1.0.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
Expand Down Expand Up @@ -979,6 +984,11 @@
<exclude>FDB-backport-LGPL-21-ONLY-license.xml.template.txt</exclude>
<exclude>LGPL-21-license.template.txt</exclude>
<exclude>LGPL-21-license.txt</exclude>
<exclude>LGPL-21-license.template.txt</exclude>
<exclude>**/README.md</exclude>
<exclude>**/README</exclude>
<exclude>**/LICENSE</exclude>
<exclude>**/*.xar</exclude>
</excludes>
</licenseSet>
</licenseSets>
Expand Down Expand Up @@ -1006,13 +1016,6 @@
<email>${contact.email}</email>
<url>${project.organization.url}</url>
</properties>
<excludes>
<exclude>LGPL-21-license.template.txt</exclude>
<exclude>**/README.md</exclude>
<exclude>**/README</exclude>
<exclude>**/LICENSE</exclude>
<exclude>**/*.xar</exclude>
</excludes>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
<executions>
Expand Down Expand Up @@ -1041,6 +1044,7 @@
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
<propertiesEncoding>${project.build.sourceEncoding}</propertiesEncoding>
</configuration>
</plugin>
<plugin>
Expand Down

0 comments on commit bd8b4eb

Please sign in to comment.