deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject deltaspike git commit: DELTASPIKE-831 special handling and warning for classes in the default-package
Date Fri, 06 Feb 2015 12:24:17 GMT
Repository: deltaspike
Updated Branches:
  refs/heads/master 6a12b319e -> 4a325499b


DELTASPIKE-831 special handling and warning for classes in the default-package


Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/4a325499
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/4a325499
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/4a325499

Branch: refs/heads/master
Commit: 4a325499b501b194123901c1e337d02bd24ad29b
Parents: 6a12b31
Author: gpetracek <gpetracek@apache.org>
Authored: Fri Feb 6 13:20:03 2015 +0100
Committer: gpetracek <gpetracek@apache.org>
Committed: Fri Feb 6 13:23:52 2015 +0100

----------------------------------------------------------------------
 .../deltaspike/testcontrol/impl/mock/DefaultMockFilter.java    | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/4a325499/deltaspike/modules/test-control/impl/src/main/java/org/apache/deltaspike/testcontrol/impl/mock/DefaultMockFilter.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/test-control/impl/src/main/java/org/apache/deltaspike/testcontrol/impl/mock/DefaultMockFilter.java
b/deltaspike/modules/test-control/impl/src/main/java/org/apache/deltaspike/testcontrol/impl/mock/DefaultMockFilter.java
index 76d7e8b..92ff3da 100644
--- a/deltaspike/modules/test-control/impl/src/main/java/org/apache/deltaspike/testcontrol/impl/mock/DefaultMockFilter.java
+++ b/deltaspike/modules/test-control/impl/src/main/java/org/apache/deltaspike/testcontrol/impl/mock/DefaultMockFilter.java
@@ -83,6 +83,12 @@ public class DefaultMockFilter implements MockFilter
             }
         }
 
+        if (origin != null && origin.getPackage() == null)
+        {
+            LOG.warning("Please don't use the default-package for " + origin.getName());
+            return true;
+        }
+
         return origin != null && !isInternalPackage(origin.getPackage().getName());
     }
 


Mime
View raw message