Skip to content

Commit 8f56eaf

Browse files
committed
For #401, apply a consistent copyright notice to the java/ tree.
Uses a line-comment format rather than block comments for consistency across languages.
1 parent 20c9f7e commit 8f56eaf

File tree

1,304 files changed

+21917
-20631
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,304 files changed

+21917
-20631
lines changed

Diff for: java/client/src/com/thoughtworks/selenium/BrowserConfigurationOptions.java

+30-30
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
/*
2-
Copyright 2012 Selenium committers
3-
Copyright 2012 Software Freedom Conservancy
4-
5-
Licensed under the Apache License, Version 2.0 (the "License");
6-
you may not use this file except in compliance with the License.
7-
You may obtain a copy of the License at
8-
9-
http://www.apache.org/licenses/LICENSE-2.0
10-
11-
Unless required by applicable law or agreed to in writing, software
12-
distributed under the License is distributed on an "AS IS" BASIS,
13-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
See the License for the specific language governing permissions and
15-
limitations under the License.
16-
*/
1+
// Licensed to the Software Freedom Conservancy (SFC) under one
2+
// or more contributor license agreements. See the NOTICE file
3+
// distributed with this work for additional information
4+
// regarding copyright ownership. The SFC licenses this file
5+
// to you under the Apache License, Version 2.0 (the
6+
// "License"); you may not use this file except in compliance
7+
// with the License. You may obtain a copy of the License at
8+
//
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
//
11+
// Unless required by applicable law or agreed to in writing,
12+
// software distributed under the License is distributed on an
13+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
// KIND, either express or implied. See the License for the
15+
// specific language governing permissions and limitations
16+
// under the License.
1717

1818

1919
package com.thoughtworks.selenium;
@@ -23,12 +23,12 @@
2323

2424
/**
2525
* Contains parameters for a single Selenium browser session.
26-
*
26+
*
2727
* BrowserConfigurationOptions is used as an argument to {@code Selenium.start()}. The parameters
2828
* set within will override any command-line parameters set for the same option.
29-
*
29+
*
3030
* @author jbevan, chandrap
31-
*
31+
*
3232
*/
3333
public class BrowserConfigurationOptions {
3434
public static final String PROXY_CONFIG = "proxy";
@@ -53,7 +53,7 @@ public BrowserConfigurationOptions() {
5353

5454
/**
5555
* Returns true if any options are set in this instance.
56-
*
56+
*
5757
* @return true if any options are set in this instance.
5858
*/
5959
public boolean hasOptions() {
@@ -62,7 +62,7 @@ public boolean hasOptions() {
6262

6363
/**
6464
* Serializes to the format "name=value;name=value".
65-
*
65+
*
6666
* @return String with the above format.
6767
*/
6868
public String serialize() {
@@ -82,7 +82,7 @@ public String serialize() {
8282
/**
8383
* Sets the name of the profile, which must exist in the -profilesLocation directory, to use for
8484
* this browser session.
85-
*
85+
*
8686
* @param profile the name of the profile.
8787
* @return this BrowserConfigurationOptions object.
8888
*/
@@ -98,7 +98,7 @@ protected String getProfile() {
9898

9999
/**
100100
* Returns true if the {@code SINGLE_WINDOW} field is set.
101-
*
101+
*
102102
* @return true if {@code SINGLE_WINDOW} is set.
103103
*/
104104
protected boolean isSingleWindow() {
@@ -110,7 +110,7 @@ protected boolean isSingleWindow() {
110110

111111
/**
112112
* Returns true if the {@code MULTI_WINDOW} field is set.
113-
*
113+
*
114114
* @return true if {@code MULTI_WINDOW} is set.
115115
*/
116116
protected boolean isMultiWindow() {
@@ -149,7 +149,7 @@ protected String getBrowserExecutablePath() {
149149

150150
/**
151151
* Sets the full path for the browser executable.
152-
*
152+
*
153153
* @param executablePath the full path for the browser executable.
154154
*/
155155
public BrowserConfigurationOptions setBrowserExecutablePath(String executablePath) {
@@ -159,7 +159,7 @@ public BrowserConfigurationOptions setBrowserExecutablePath(String executablePat
159159

160160
/**
161161
* Sets the timeout, in seconds, for all commands.
162-
*
162+
*
163163
* @param timeout the timeout for all commands
164164
* @return this BrowserConfigurationOptions instance.
165165
*/
@@ -176,15 +176,15 @@ protected int getTimeoutInSeconds() {
176176

177177
/**
178178
* Sets the "mode" for the browser.
179-
*
179+
*
180180
* Historically, the 'browser' argument for getNewBrowserSession implied the mode for the browser.
181181
* For example, *iehta indicated HTA mode for IE, whereas *iexplore indicated the default user
182182
* mode. Using this method allows a browser mode to be specified independently of the base
183183
* browser, eg. "HTA" or "PROXY".
184-
*
184+
*
185185
* Note that absolutely no publication nor synchronization of these hard-coded strings such as
186186
* "HTA" has yet been done. Use at your own risk until this is rectified.
187-
*
187+
*
188188
* @param mode
189189
*/
190190
public BrowserConfigurationOptions setBrowserMode(String mode) {
@@ -231,7 +231,7 @@ public String get(String key) {
231231
/**
232232
* Sets the given key to the given value unless the value is null. In that case, no entry for the
233233
* key is made.
234-
*
234+
*
235235
* @param key the name of the key
236236
* @param value the value for the key
237237
*/

Diff for: java/client/src/com/thoughtworks/selenium/CommandProcessor.java

+19-19
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
/*
2-
* Copyright 2011 Software Freedom Conservancy.
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*
16-
*/
1+
// Licensed to the Software Freedom Conservancy (SFC) under one
2+
// or more contributor license agreements. See the NOTICE file
3+
// distributed with this work for additional information
4+
// regarding copyright ownership. The SFC licenses this file
5+
// to you under the Apache License, Version 2.0 (the
6+
// "License"); you may not use this file except in compliance
7+
// with the License. You may obtain a copy of the License at
8+
//
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
//
11+
// Unless required by applicable law or agreed to in writing,
12+
// software distributed under the License is distributed on an
13+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
// KIND, either express or implied. See the License for the
15+
// specific language governing permissions and limitations
16+
// under the License.
1717

1818
package com.thoughtworks.selenium;
1919

2020
/**
2121
* <p>
2222
* Provides a <code>doCommand</code> method, which sends the command to the browser to be performed.
2323
* </p>
24-
*
24+
*
2525
*
2626
* @author Paul Hammant
2727
* @version $Revision$
@@ -32,14 +32,14 @@ public interface CommandProcessor {
3232

3333
/**
3434
* The URL that the RemoteControl instance is allegedly running on
35-
*
35+
*
3636
* @return the URL
3737
*/
3838
String getRemoteControlServerLocation();
3939

4040
/**
4141
* Send the specified remote command to the browser to be performed
42-
*
42+
*
4343
* @param command - the remote command verb
4444
* @param args - the arguments to the remote command (depends on the verb)
4545
* @return - the command result, defined by the remote JavaScript. "getX" style commands may

Diff for: java/client/src/com/thoughtworks/selenium/DefaultRemoteCommand.java

+17-17
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
/*
2-
* Copyright 2011 Software Freedom Conservancy.
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*
16-
*/
1+
// Licensed to the Software Freedom Conservancy (SFC) under one
2+
// or more contributor license agreements. See the NOTICE file
3+
// distributed with this work for additional information
4+
// regarding copyright ownership. The SFC licenses this file
5+
// to you under the Apache License, Version 2.0 (the
6+
// "License"); you may not use this file except in compliance
7+
// with the License. You may obtain a copy of the License at
8+
//
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
//
11+
// Unless required by applicable law or agreed to in writing,
12+
// software distributed under the License is distributed on an
13+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
// KIND, either express or implied. See the License for the
15+
// specific language governing permissions and limitations
16+
// under the License.
1717

1818
package com.thoughtworks.selenium;
1919

2020
import org.openqa.selenium.net.Urls;
2121

2222
/**
2323
* The default implementation of the RemoteCommand interface
24-
*
24+
*
2525
* @see com.thoughtworks.selenium.RemoteCommand
2626
* @author Paul Hammant
2727
* @version $Revision$

Diff for: java/client/src/com/thoughtworks/selenium/DefaultSelenium.java

+19-19
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
/*
2-
* Copyright 2011 Software Freedom Conservancy.
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*
16-
*/
1+
// Licensed to the Software Freedom Conservancy (SFC) under one
2+
// or more contributor license agreements. See the NOTICE file
3+
// distributed with this work for additional information
4+
// regarding copyright ownership. The SFC licenses this file
5+
// to you under the Apache License, Version 2.0 (the
6+
// "License"); you may not use this file except in compliance
7+
// with the License. You may obtain a copy of the License at
8+
//
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
//
11+
// Unless required by applicable law or agreed to in writing,
12+
// software distributed under the License is distributed on an
13+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
// KIND, either express or implied. See the License for the
15+
// specific language governing permissions and limitations
16+
// under the License.
1717

1818
package com.thoughtworks.selenium;
1919

@@ -33,7 +33,7 @@ public class DefaultSelenium implements Selenium {
3333
/**
3434
* Uses a CommandBridgeClient, specifying a server host/port, a command to launch the browser, and
3535
* a starting URL for the browser.
36-
*
36+
*
3737
* <p>
3838
* <i>browserStartCommand</i> may be any one of the following:
3939
* <ul>
@@ -59,7 +59,7 @@ public class DefaultSelenium implements Selenium {
5959
* up to you to configure it correctly. At a minimum, you'll need to configure your browser to use
6060
* the Selenium Server as a proxy, and disable all browser-specific prompting.
6161
* </ul>
62-
*
62+
*
6363
* @param serverHost the host name on which the Selenium Server resides
6464
* @param serverPort the port on which the Selenium Server is listening
6565
* @param browserStartCommand the command string used to launch the browser, e.g. "*firefox",
@@ -89,7 +89,7 @@ public DefaultSelenium(CommandProcessor processor) {
8989
* will be in-play the next time a session is created; that is, typically the next time
9090
* <code>start()</code> is invoked (and <code>getNewBrowserSession</code> is sent to the RC under
9191
* the sheets).
92-
*
92+
*
9393
* @param extensionJs a string representing the extra extension javascript to include in the
9494
* browser session. This is in addition to any specified via the -userExtensions switch
9595
* when starting the RC.

0 commit comments

Comments
 (0)