Updated Branches:
  refs/heads/wicket-1.4.x aebab524c -> 84664817f

Add forgotten file


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

Branch: refs/heads/wicket-1.4.x
Commit: 84664817fd137dc71fdda0a26a596c2fb3fbf41c
Parents: aebab52
Author: martin-g <[email protected]>
Authored: Mon Mar 5 11:08:06 2012 +0200
Committer: martin-g <[email protected]>
Committed: Mon Mar 5 11:08:06 2012 +0200

----------------------------------------------------------------------
 .../locator/EmptyResourceNameIterator.java         |   46 +++++++++++++++
 1 files changed, 46 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/84664817/wicket/src/main/java/org/apache/wicket/util/resource/locator/EmptyResourceNameIterator.java
----------------------------------------------------------------------
diff --git 
a/wicket/src/main/java/org/apache/wicket/util/resource/locator/EmptyResourceNameIterator.java
 
b/wicket/src/main/java/org/apache/wicket/util/resource/locator/EmptyResourceNameIterator.java
new file mode 100644
index 0000000..1076b55
--- /dev/null
+++ 
b/wicket/src/main/java/org/apache/wicket/util/resource/locator/EmptyResourceNameIterator.java
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wicket.util.resource.locator;
+
+
+/**
+ * A ResourceNameIterator that doesn't find any resources.
+ * 
+ * @since 1.5.5
+ */
+public final class EmptyResourceNameIterator extends ResourceNameIterator
+{
+       /**
+        * Constructor.
+        */
+       public EmptyResourceNameIterator()
+       {
+               super(null, null, null, null);
+       }
+
+       @Override
+       public boolean hasNext()
+       {
+               return false;
+       }
+
+       @Override
+       public void remove()
+       {
+               // noop
+       }
+}

Reply via email to