View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.modifier.redundantmodifier;
2   
3   
4   public interface InputRedundantModifierFinalInInterface {
5   	final int k = 5; // violation
6   	
7       default int defaultMethod(final int x) {
8       	if (k == 5) {
9       		final int t = 24;  //No violation here!
10      		for (; ;) {
11      			final String s = "some";  //No violation here!
12      		}
13      	}
14          final int square = x * x;  //No violation here!
15          return square;
16      }
17  }