Skip to content

Commit

Permalink
Fix various Checkstyle and IDE warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
markt-asf committed Jun 29, 2023
1 parent c8adc4c commit 430ae2e
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public void lifecycleEvent(LifecycleEvent event) {
}

if (log.isDebugEnabled()) {
log.debug(sm.getString("propertiesRoleMappingListener.linkedRoleCount", linkCount));
log.debug(sm.getString("propertiesRoleMappingListener.linkedRoleCount", Integer.valueOf(linkCount)));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
import java.util.List;
import java.util.Map;

import jakarta.servlet.http.HttpServletRequest;

import org.junit.Assert;
import org.junit.Test;

import org.apache.catalina.Context;
import org.apache.catalina.LifecycleException;
import org.apache.catalina.authenticator.BasicAuthenticator;
Expand All @@ -37,10 +42,6 @@
import org.apache.tomcat.util.descriptor.web.LoginConfig;
import org.apache.tomcat.util.descriptor.web.SecurityCollection;
import org.apache.tomcat.util.descriptor.web.SecurityConstraint;
import org.junit.Assert;
import org.junit.Test;

import jakarta.servlet.http.HttpServletRequest;

public class TestPropertiesRoleMappingListener extends TomcatBaseTest {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
# 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.

app-roles.admin=de25f8f5-e534-4980-9351-e316384b1127
app-roles.user=13f6b886-cba8-4b5b-9a1b-06a6fe533356
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
# 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.

admin=de25f8f5-e534-4980-9351-e316384b1127
user=13f6b886-cba8-4b5b-9a1b-06a6fe533356
15 changes: 15 additions & 0 deletions test/webapp-role-mapping/WEB-INF/prefixed-role-mapping.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
# 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.

app-roles.admin=de25f8f5-e534-4980-9351-e316384b1127
app-roles.user=13f6b886-cba8-4b5b-9a1b-06a6fe533356
15 changes: 15 additions & 0 deletions test/webapp-role-mapping/WEB-INF/role-mapping.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
# 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.

admin=de25f8f5-e534-4980-9351-e316384b1127
user=13f6b886-cba8-4b5b-9a1b-06a6fe533356

0 comments on commit 430ae2e

Please sign in to comment.