Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public boolean matchExist(Context context, UUID itemID, UUID targetItemID, Integ
@Override
public boolean rejectAdminDups(Context context, UUID firstId, UUID secondId, Integer type)
throws SQLException, AuthorizeException {
if (firstId == secondId) {
if (firstId.equals(secondId)) {
return false;
}
if (!AuthorizeServiceFactory.getInstance().getAuthorizeService().isAdmin(context)) {
Expand Down Expand Up @@ -327,7 +327,7 @@ public boolean rejectAdminDups(Context context, UUID itemID, String signatureTyp
boolean found = false;
for (DSpaceObject item : dsi.getItems()) {
if (item != null) {
if (item.getID() == itemID) {
if (item.getID().equals(itemID)) {
found = true;
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ private Thumbnail retrieveThumbnail(Context context, Item item, String bundle,
Optional<Bitstream> primaryBitstream = bundles.get(0).getBitstreams().stream().filter(bitstream -> {
return bitstream.getMetadata().stream().anyMatch(metadataValue -> {
if (metadataField != null) {
return metadataValue.getMetadataField().getID() == metadataField.getID()
return metadataValue.getMetadataField().getID().equals(metadataField.getID())
&& metadataValue.getValue() != null
&& metadataValue.getValue().equalsIgnoreCase(value);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,9 @@ protected AccountServiceImpl() {
*
* @param context DSpace context
* @param email Email address to send the registration email to
<<<<<<< HEAD
* @throws java.sql.SQLException passed through.
* @throws java.io.IOException passed through.
* @throws javax.mail.MessagingException passed through.
=======
* @throws java.sql.SQLException passed through.
* @throws java.io.IOException passed through.
* @throws jakarta.mail.MessagingException passed through.
>>>>>>> dspace-8.0
* @throws org.dspace.authorize.AuthorizeException passed through.
*/
@Override
Expand Down Expand Up @@ -138,15 +132,9 @@ public void sendRegistrationInfo(Context context, String email, List<UUID> group
*
* @param context DSpace context
* @param email Email address to send the forgot-password email to
<<<<<<< HEAD
* @throws java.sql.SQLException passed through.
* @throws java.io.IOException passed through.
* @throws javax.mail.MessagingException passed through.
=======
* @throws java.sql.SQLException passed through.
* @throws java.io.IOException passed through.
* @throws jakarta.mail.MessagingException passed through.
>>>>>>> dspace-8.0
* @throws org.dspace.authorize.AuthorizeException passed through.
*/
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public String getConstrainMetadataName(String metadataName) {
constrainMetadata = this.metadata.get(metadataName);
if (constrainMetadata == null) {
for (Map.Entry<String,String> entry : metadata.entrySet()) {
if (entry.getValue() == metadataName) {
if (entry.getValue().equals(metadataName)) {
constrainMetadata = entry.getKey();
break;
}
Expand All @@ -77,7 +77,7 @@ public String getConstrainMetadataName(String metadataName) {
public boolean hasConstrain(String metadataName) {
boolean hasConstrain = false;
for (Map.Entry<String,String> entry : metadata.entrySet()) {
if (entry.getKey() == metadataName || entry.getValue() == metadataName) {
if (entry.getKey().equals(metadataName) || entry.getValue().equals(metadataName)) {
hasConstrain = true;
break;
}
Expand Down
Loading