@@ -115,36 +115,36 @@ public class Location extends HtmlUnitScriptable {
115115
116116 static {
117117 try {
118- methodAssign = Location .class .getDeclaredMethod ("assign" , new Class [] { String .class } );
119- methodReload = Location .class .getDeclaredMethod ("reload" , new Class [] { boolean .class } );
120- methodReplace = Location .class .getDeclaredMethod ("replace" , new Class [] { String .class } );
121- methodToString = Location .class .getDeclaredMethod ("jsToString" , new Class [] {} );
118+ methodAssign = Location .class .getDeclaredMethod ("assign" , String .class );
119+ methodReload = Location .class .getDeclaredMethod ("reload" , boolean .class );
120+ methodReplace = Location .class .getDeclaredMethod ("replace" , String .class );
121+ methodToString = Location .class .getDeclaredMethod ("jsToString" );
122122
123- getterHash = Location .class .getDeclaredMethod ("getHash" , new Class [] {} );
124- setterHash = Location .class .getDeclaredMethod ("setHash" , new Class [] { String .class } );
123+ getterHash = Location .class .getDeclaredMethod ("getHash" );
124+ setterHash = Location .class .getDeclaredMethod ("setHash" , String .class );
125125
126- getterHost = Location .class .getDeclaredMethod ("getHost" , new Class [] {} );
127- setterHost = Location .class .getDeclaredMethod ("setHost" , new Class [] { String .class } );
126+ getterHost = Location .class .getDeclaredMethod ("getHost" );
127+ setterHost = Location .class .getDeclaredMethod ("setHost" , String .class );
128128
129- getterHostname = Location .class .getDeclaredMethod ("getHostname" , new Class [] {} );
130- setterHostname = Location .class .getDeclaredMethod ("setHostname" , new Class [] { String .class } );
129+ getterHostname = Location .class .getDeclaredMethod ("getHostname" );
130+ setterHostname = Location .class .getDeclaredMethod ("setHostname" , String .class );
131131
132- getterHref = Location .class .getDeclaredMethod ("getHref" , new Class [] {} );
133- setterHref = Location .class .getDeclaredMethod ("setHref" , new Class [] { String .class } );
132+ getterHref = Location .class .getDeclaredMethod ("getHref" );
133+ setterHref = Location .class .getDeclaredMethod ("setHref" , String .class );
134134
135- getterOrigin = Location .class .getDeclaredMethod ("getOrigin" , new Class [] {} );
135+ getterOrigin = Location .class .getDeclaredMethod ("getOrigin" );
136136
137- getterPathname = Location .class .getDeclaredMethod ("getPathname" , new Class [] {} );
138- setterPathname = Location .class .getDeclaredMethod ("setPathname" , new Class [] { String .class } );
137+ getterPathname = Location .class .getDeclaredMethod ("getPathname" );
138+ setterPathname = Location .class .getDeclaredMethod ("setPathname" , String .class );
139139
140- getterPort = Location .class .getDeclaredMethod ("getPort" , new Class [] {} );
141- setterPort = Location .class .getDeclaredMethod ("setPort" , new Class [] { String .class } );
140+ getterPort = Location .class .getDeclaredMethod ("getPort" );
141+ setterPort = Location .class .getDeclaredMethod ("setPort" , String .class );
142142
143- getterProtocol = Location .class .getDeclaredMethod ("getProtocol" , new Class [] {} );
144- setterProtocol = Location .class .getDeclaredMethod ("setProtocol" , new Class [] { String .class } );
143+ getterProtocol = Location .class .getDeclaredMethod ("getProtocol" );
144+ setterProtocol = Location .class .getDeclaredMethod ("setProtocol" , String .class );
145145
146- getterSearch = Location .class .getDeclaredMethod ("getSearch" , new Class [] {} );
147- setterSearch = Location .class .getDeclaredMethod ("setSearch" , new Class [] { String .class } );
146+ getterSearch = Location .class .getDeclaredMethod ("getSearch" );
147+ setterSearch = Location .class .getDeclaredMethod ("setSearch" , String .class );
148148 }
149149 catch (NoSuchMethodException | SecurityException e ) {
150150 throw new RuntimeException (e );
0 commit comments