You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-scm@portals.apache.org by as...@apache.org on 2016/12/15 18:42:01 UTC

[2/2] portals-pluto git commit: Remove null check for optional source and version of page resource dependencies

Remove null check for optional source and version of page resource dependencies


Project: http://git-wip-us.apache.org/repos/asf/portals-pluto/repo
Commit: http://git-wip-us.apache.org/repos/asf/portals-pluto/commit/b37e80c8
Tree: http://git-wip-us.apache.org/repos/asf/portals-pluto/tree/b37e80c8
Diff: http://git-wip-us.apache.org/repos/asf/portals-pluto/diff/b37e80c8

Branch: refs/heads/master
Commit: b37e80c83c01660e82202b89364a7ebc549a5228
Parents: 1733ade
Author: Kyle Stiemann <st...@gmail.com>
Authored: Mon Oct 24 13:25:13 2016 -0400
Committer: Neil Griffin <ne...@gmail.com>
Committed: Thu Dec 15 13:40:10 2016 -0500

----------------------------------------------------------------------
 .../org/apache/pluto/driver/services/portal/PageResources.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/b37e80c8/pluto-portal-driver/src/main/java/org/apache/pluto/driver/services/portal/PageResources.java
----------------------------------------------------------------------
diff --git a/pluto-portal-driver/src/main/java/org/apache/pluto/driver/services/portal/PageResources.java b/pluto-portal-driver/src/main/java/org/apache/pluto/driver/services/portal/PageResources.java
index 702c2d7..59f1845 100644
--- a/pluto-portal-driver/src/main/java/org/apache/pluto/driver/services/portal/PageResources.java
+++ b/pluto-portal-driver/src/main/java/org/apache/pluto/driver/services/portal/PageResources.java
@@ -128,8 +128,7 @@ public class PageResources {
     * adds a resource
     */
    public void addResource(PageResourceId id, Type type, String source) {
-      if (id.getName() != null && id.getScope() != null  && type != null && 
-            id.getVersion() != null && source != null) {
+      if (id.getName() != null && type != null && source != null) {
          resources.put(id, new Source(type, source));
       } else {
          StringBuilder txt = new StringBuilder(128);