Upgrade to Jakarta EE 10

* Fix mail module to fit to the latest mail API requirements
* Fix the last Sonar smell in the `SmbShare`
* Remove redundant dependency for `hamcrest-core` in various modules
This commit is contained in:
Artem Bilan
2022-11-07 17:04:14 -05:00
parent 053c86ab05
commit 60f453e9ff
4 changed files with 73 additions and 57 deletions

View File

@@ -41,6 +41,7 @@ import jcifs.smb.SmbFile;
* @author Markus Spann
* @author Gregory Bragg
* @author Adam Jones
* @author Artem Bilan
*
* @since 6.0
*/
@@ -139,4 +140,25 @@ public class SmbShare extends SmbFile {
super.close();
}
/**
* Tests to see if two {@link SmbShare} objects are equal.
* Relies on a super implementation.
* @param other another {@link SmbShare} object to compare for equality.
* @return equality result.
*/
@Override
public boolean equals(Object other) { // NOSONAR
return super.equals(other);
}
/**
* Return a cache code from the super class.
* @return A hashcode for this share
*/
@Override
public int hashCode() { // NOSONAR
return super.hashCode();
}
}