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:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user