code style improvements.
[utils] / system / general / src / main / java / org / wamblee / system / graph / component / ConnectRequiredProvidedEdgeFilter.java
index a2f918774d3029501c831ff1b8c00df9a39c2ad1..4984b7d805942a07c2a65fae5a5a2258a38dc199 100644 (file)
@@ -12,7 +12,7 @@
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 package org.wamblee.system.graph.component;
 
 import org.wamblee.system.graph.Edge;
@@ -76,13 +76,11 @@ public class ConnectRequiredProvidedEdgeFilter implements EdgeFilter {
                     .getName()))) {
                 // to part matches also
                 return false;
-            } else {
-                // From matches and to doesn't so edgefilter is violated.
-                return true;
             }
-        } else {
-            // From part does not match, restriction does not apply.
-            return false;
+            // From matches and to doesn't so edgefilter is violated.
+            return true;
         }
+        // From part does not match, restriction does not apply.
+        return false;
     }
 }