|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2012 the original author or authors. |
| 2 | + * Copyright 2002-2013 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
@@ -51,36 +51,32 @@ public class AspectJWeaverMessageHandler implements IMessageHandler {
|
51 | 51 | public boolean handleMessage(IMessage message) throws AbortException {
|
52 | 52 | Kind messageKind = message.getKind();
|
53 | 53 |
|
54 |
| - if (LOGGER.isDebugEnabled() || LOGGER.isTraceEnabled()) { |
55 |
| - if (messageKind == IMessage.DEBUG) { |
| 54 | + if (messageKind == IMessage.DEBUG) { |
| 55 | + if (LOGGER.isDebugEnabled() || LOGGER.isTraceEnabled()) { |
56 | 56 | LOGGER.debug(makeMessageFor(message));
|
57 | 57 | return true;
|
58 | 58 | }
|
59 | 59 | }
|
60 |
| - |
61 |
| - if (LOGGER.isInfoEnabled()) { |
62 |
| - if ((messageKind == IMessage.INFO) || (messageKind == IMessage.WEAVEINFO)) { |
| 60 | + else if ((messageKind == IMessage.INFO) || (messageKind == IMessage.WEAVEINFO)) { |
| 61 | + if (LOGGER.isInfoEnabled()) { |
63 | 62 | LOGGER.info(makeMessageFor(message));
|
64 | 63 | return true;
|
65 | 64 | }
|
66 | 65 | }
|
67 |
| - |
68 |
| - if (LOGGER.isWarnEnabled()) { |
69 |
| - if (messageKind == IMessage.WARNING) { |
| 66 | + else if (messageKind == IMessage.WARNING) { |
| 67 | + if (LOGGER.isWarnEnabled()) { |
70 | 68 | LOGGER.warn(makeMessageFor(message));
|
71 | 69 | return true;
|
72 | 70 | }
|
73 | 71 | }
|
74 |
| - |
75 |
| - if (LOGGER.isErrorEnabled()) { |
76 |
| - if (messageKind == IMessage.ERROR) { |
| 72 | + else if (messageKind == IMessage.ERROR) { |
| 73 | + if (LOGGER.isErrorEnabled()) { |
77 | 74 | LOGGER.error(makeMessageFor(message));
|
78 | 75 | return true;
|
79 | 76 | }
|
80 | 77 | }
|
81 |
| - |
82 |
| - if (LOGGER.isFatalEnabled()) { |
83 |
| - if (messageKind == IMessage.ABORT) { |
| 78 | + else if (messageKind == IMessage.ABORT) { |
| 79 | + if (LOGGER.isFatalEnabled()) { |
84 | 80 | LOGGER.fatal(makeMessageFor(message));
|
85 | 81 | return true;
|
86 | 82 | }
|
|
0 commit comments