Duplicate modifier
The compiler detected a modifier used twice in a declaration. This error usually occurs when the same modifier is mistakenly used more than once within a declaration.
The following example illustrates this error:
public class Simple {
public public void method1() { // error: 'public' used twice
// do something meaningful
}
}