Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Commit 9b10d38

Browse files
jhoellercbeams
authored andcommittedMay 28, 2012
Fix window state comparison in DAHandlerMapping
1 parent 08784f3 commit 9b10d38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎spring-webmvc-portlet/src/main/java/org/springframework/web/portlet/mvc/annotation/DefaultAnnotationHandlerMapping.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2011 the original author or authors.
2+
* Copyright 2002-2012 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -411,8 +411,8 @@ public int compareTo(Object other) {
411411
}
412412
else if (other instanceof RenderMappingPredicate) {
413413
RenderMappingPredicate otherRender = (RenderMappingPredicate) other;
414-
boolean hasWindowState = "".equals(this.windowState);
415-
boolean otherHasWindowState = "".equals(otherRender.windowState);
414+
boolean hasWindowState = (this.windowState != null);
415+
boolean otherHasWindowState = (otherRender.windowState != null);
416416
if (hasWindowState != otherHasWindowState) {
417417
return (hasWindowState ? -1 : 1);
418418
}

0 commit comments

Comments
 (0)
This repository has been archived.