avoid using Arrays.asList for a single element

This commit is contained in:
Egor.Ushakov
2015-01-14 21:15:17 +03:00
parent e54dc7d531
commit 768f82b798
9 changed files with 24 additions and 25 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2014 JetBrains s.r.o.
* Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -397,7 +397,7 @@ public class ControlFlowGraph implements CodeConstants {
ExceptionRangeCFG range = new ExceptionRangeCFG(protectedRange, handle, handler.exceptionClass == null
? null
: Arrays.asList(handler.exceptionClass));
: Collections.singletonList(handler.exceptionClass));
mapRanges.put(key, range);
exceptions.add(range);