Skip to content

Commit

Permalink
Updated for Sonar related issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
WasiqB committed Sep 30, 2018
1 parent f653270 commit 0b82a54
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ public enum Protocol {
*/
HTTPS ("https");

private final String protocol;
private final String name;

private Protocol (final String protocol) {
this.protocol = protocol;
private Protocol (final String name) {
this.name = name;
}

/**
* @author wasiqb
* @since Sep 29, 2018
* @return the protocol
* @return the protocol name
*/
public String getProtocol () {
return this.protocol;
public String getName () {
return this.name;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,7 @@ public void clear () {
* @since Jul 15, 2017 6:12:00 PM
*/
public void click () {
perform ("Clicking on", e -> {
e.click ();
});
perform ("Clicking on", MobileElement::click);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ private void buildService () {

private String getUrl () {
final StringBuilder sb = new StringBuilder (this.setting.getProtocol ()
.getProtocol ()).append ("://");
.getName ()).append ("://");
if (this.setting.isCloud ()) {
checkServerConfigParams ("User Name", this.setting.getUserName ());
checkServerConfigParams ("Password", this.setting.getPassword ());
Expand Down

0 comments on commit 0b82a54

Please sign in to comment.