[utilities COMMIT] in /java-support/trunk/src/test/java/net/shibboleth/utilities/java/support: logic/ComponentInitial...
noreply at shibboleth.net
noreply at shibboleth.net
Sat Jan 17 15:14:26 EST 2015
Author: scantor
Date: Sat Jan 17 15:14:26 2015
New Revision: 726
URL: http://svn.shibboleth.net/view/utilities?rev=726&view=rev
Log:
Add missing svn:eol-style props.
Modified:
java-support/trunk/src/test/java/net/shibboleth/utilities/java/support/logic/ComponentInitializationExceptionFunction.java (props changed)
java-support/trunk/src/test/java/net/shibboleth/utilities/java/support/logic/ComponentInitializationExceptionPredicate.java (props changed)
java-support/trunk/src/test/java/net/shibboleth/utilities/java/support/logic/ExceptionFunction.java (props changed)
java-support/trunk/src/test/java/net/shibboleth/utilities/java/support/logic/ExceptionPredicate.java (props changed)
java-support/trunk/src/test/java/net/shibboleth/utilities/java/support/resource/TestResourceConverter.java (contents, props changed)
Modified: java-support/trunk/src/test/java/net/shibboleth/utilities/java/support/resource/TestResourceConverter.java
URL: http://svn.shibboleth.net/view/utilities/java-support/trunk/src/test/java/net/shibboleth/utilities/java/support/resource/TestResourceConverter.java?rev=726&r1=725&r2=726&view=diff
==============================================================================
--- java-support/trunk/src/test/java/net/shibboleth/utilities/java/support/resource/TestResourceConverter.java (original)
+++ java-support/trunk/src/test/java/net/shibboleth/utilities/java/support/resource/TestResourceConverter.java Sat Jan 17 15:14:26 2015
@@ -1,127 +1,127 @@
-/*
- * Licensed to the University Corporation for Advanced Internet Development,
- * Inc. (UCAID) under one or more contributor license agreements. See the
- * NOTICE file distributed with this work for additional information regarding
- * copyright ownership. The UCAID 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 net.shibboleth.utilities.java.support.resource;
-
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.URI;
-import java.net.URL;
-
-import javax.annotation.Nonnull;
-
-import net.shibboleth.utilities.java.support.logic.Constraint;
-
-import org.springframework.core.io.Resource;
-
-/**
- * Bridging class between {@link Resource} and {@link net.shibboleth.utilities.java.support.resource.Resource}.
- */
-public final class TestResourceConverter implements net.shibboleth.utilities.java.support.resource.Resource {
-
- /** The cached Spring {@link Resource}. */
- private Resource springResource;
-
- /**
- * A private for shimming the provided input.
- *
- * @param theResource the spring resource;
- */
- private TestResourceConverter(@Nonnull Resource theResource) {
-
- springResource = Constraint.isNotNull(theResource, "provided Spring Resource should not be null");
- }
-
- /**
- * Return a {@link Resource} that does all the work of the provided {@link Resource}<br/>
- * If the input implements {@link Resource} then it is cast to the output, other a shim class is
- * generated.
- *
- * @param springResource the input
- * @return a {@link Resource} which reflects what the Spring one does
- */
- public static net.shibboleth.utilities.java.support.resource.Resource of(Resource springResource) {
- if (springResource instanceof net.shibboleth.utilities.java.support.resource.Resource) {
- return (net.shibboleth.utilities.java.support.resource.Resource) springResource;
- }
- return new TestResourceConverter(springResource);
- }
-
- /** {@inheritDoc} */
- @Override public InputStream getInputStream() throws IOException {
- return springResource.getInputStream();
- }
-
- /** {@inheritDoc} */
- @Override public boolean exists() {
- return springResource.exists();
- }
-
- /** {@inheritDoc} */
- @Override public boolean isReadable() {
- return springResource.isReadable();
- }
-
- /** {@inheritDoc} */
- @Override public boolean isOpen() {
- return springResource.isOpen();
- }
-
- /** {@inheritDoc} */
- @Override public URL getURL() throws IOException {
- return springResource.getURL();
- }
-
- /** {@inheritDoc} */
- @Override public URI getURI() throws IOException {
- return springResource.getURI();
- }
-
- /** {@inheritDoc} */
- @Override public File getFile() throws IOException {
- return springResource.getFile();
- }
-
[... 156 lines stripped ...]
More information about the commits
mailing list