Polish "Simplify code"

See gh-23111
This commit is contained in:
Stephane Nicoll 2020-09-01 10:06:17 +02:00
parent ffc577b499
commit 5a86162ff3
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2019 the original author or authors. * Copyright 2012-2020 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -53,7 +53,10 @@ class WebDriverContextCustomizerFactory implements ContextCustomizerFactory {
if (obj == this) { if (obj == this) {
return true; return true;
} }
return obj != null && obj.getClass() == getClass(); if (obj == null || obj.getClass() != getClass()) {
return false;
}
return true;
} }
@Override @Override