diff options
Diffstat (limited to 'framework')
-rw-r--r-- | framework/qa/complex/dispatches/Interceptor.java | 6 | ||||
-rw-r--r-- | framework/qa/complex/dispatches/checkdispatchapi.java | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/framework/qa/complex/dispatches/Interceptor.java b/framework/qa/complex/dispatches/Interceptor.java index a6653d195e98..44ba2a2a9da0 100644 --- a/framework/qa/complex/dispatches/Interceptor.java +++ b/framework/qa/complex/dispatches/Interceptor.java @@ -259,8 +259,7 @@ public class Interceptor implements XDispatch, { if (m_lURLs4InterceptionInfo == null) { - m_lURLs4InterceptionInfo = new String[1]; - m_lURLs4InterceptionInfo[0] = "*"; + m_lURLs4InterceptionInfo = new String[] { "*" }; } return m_lURLs4InterceptionInfo; @@ -276,8 +275,7 @@ public class Interceptor implements XDispatch, { if (m_lURLs4Blocking == null) { - m_lURLs4Blocking = new String[1]; - m_lURLs4Blocking[0] = "*"; + m_lURLs4Blocking = new String[] { "*" }; } return m_lURLs4Blocking; diff --git a/framework/qa/complex/dispatches/checkdispatchapi.java b/framework/qa/complex/dispatches/checkdispatchapi.java index b2342232fece..c227be25e9bb 100644 --- a/framework/qa/complex/dispatches/checkdispatchapi.java +++ b/framework/qa/complex/dispatches/checkdispatchapi.java @@ -251,8 +251,7 @@ public class checkdispatchapi public void checkInterception() { - String[] lDisabledURLs = new String[1]; - lDisabledURLs[0] = ".uno:Open"; + String[] lDisabledURLs = new String[] { ".uno:Open" }; System.out.println("create and initialize interceptor ..."); Interceptor aInterceptor = new Interceptor(); |