[java-oidc-common] branch main updated: Fix checkstyle
Phil Smart
philip.smart at jisc.ac.uk
Wed Mar 9 12:27:32 UTC 2022
This is an automated email from the git hooks/post-receive script.
philsmart pushed a commit to branch main
in repository java-oidc-common.
View the commit online:
http://git.shibboleth.net/view/?p=java-oidc-common.git;a=commit;h=aef51f444daf8f3aa043a7cfc6902f59af62d2ce
The following commit(s) were added to refs/heads/main by this push:
new aef51f4 Fix checkstyle
aef51f4 is described below
commit aef51f444daf8f3aa043a7cfc6902f59af62d2ce
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Wed Mar 9 12:27:27 2022 +0000
Fix checkstyle
---
.../impl/MetadataPolicyLookupStrategyFactory.java | 23 ++++++++++++++++++++--
.../MetadataPolicyLookupStrategyFactoryTest.java | 17 ++++++++++++++++
2 files changed, 38 insertions(+), 2 deletions(-)
diff --git a/oidc-common-metadata-impl/src/main/java/net/shibboleth/oidc/metadata/cache/impl/MetadataPolicyLookupStrategyFactory.java b/oidc-common-metadata-impl/src/main/java/net/shibboleth/oidc/metadata/cache/impl/MetadataPolicyLookupStrategyFactory.java
index 6752267..556b52d 100644
--- a/oidc-common-metadata-impl/src/main/java/net/shibboleth/oidc/metadata/cache/impl/MetadataPolicyLookupStrategyFactory.java
+++ b/oidc-common-metadata-impl/src/main/java/net/shibboleth/oidc/metadata/cache/impl/MetadataPolicyLookupStrategyFactory.java
@@ -1,3 +1,20 @@
+/*
+ * 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.oidc.metadata.cache.impl;
import java.io.IOException;
@@ -48,8 +65,10 @@ public class MetadataPolicyLookupStrategyFactory {
*/
public Function<ProfileRequestContext,Map<String,MetadataPolicy>> buildFileLoadingMetadataPolicyResolver(
@ParameterName(name="resource") @Nullable final String resource,
- @ParameterName(name="cacheSpec") @Nonnull final BatchMetadataCacheBuilderSpec<String, Map<String, MetadataPolicy>> cacheSpec,
- @ParameterName(name="criteriaSetLookupStrategy") @Nullable final Function<ProfileRequestContext, CriteriaSet> criteriaSetLookupStrategy,
+ @ParameterName(name="cacheSpec") @Nonnull
+ final BatchMetadataCacheBuilderSpec<String, Map<String, MetadataPolicy>> cacheSpec,
+ @ParameterName(name="criteriaSetLookupStrategy") @Nullable
+ final Function<ProfileRequestContext, CriteriaSet> criteriaSetLookupStrategy,
@ParameterName(name="id") @Nonnull final String id) throws ComponentInitializationException, IOException{
final BatchMetadataCacheBuilder.Builder<String, Map<String, MetadataPolicy>> builder =
diff --git a/oidc-common-metadata-impl/src/test/java/net/shibboleth/oidc/metadata/cache/impl/MetadataPolicyLookupStrategyFactoryTest.java b/oidc-common-metadata-impl/src/test/java/net/shibboleth/oidc/metadata/cache/impl/MetadataPolicyLookupStrategyFactoryTest.java
index 2311e18..69c264c 100644
--- a/oidc-common-metadata-impl/src/test/java/net/shibboleth/oidc/metadata/cache/impl/MetadataPolicyLookupStrategyFactoryTest.java
+++ b/oidc-common-metadata-impl/src/test/java/net/shibboleth/oidc/metadata/cache/impl/MetadataPolicyLookupStrategyFactoryTest.java
@@ -1,3 +1,20 @@
+/*
+ * 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.oidc.metadata.cache.impl;
import static org.testng.Assert.assertNotNull;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list