void fireMessageLogged(Target target, String message, int priority) { fireMessageLogged(target, message, null, priority); } /** * Send a "message logged" target level event * to the build listeners for this project. * * @param target The target generating the event. * Must not be <code>null</code>. * @param message The message to send. Should not be <code>null</code>. * @param throwable The exception that caused this message. May be <code>null</code>. * @param priority The priority of the message. * @since 1.7 */ protected void fireMessageLogged(Target target, String message, Throwable throwable, int priority) { BuildEvent event = new BuildEvent(target); event.setException(throwable); fireMessageLoggedEvent(event, message, priority); } /** * Send a "message logged" task level event * to the build listeners for this project. * * @param task The task generating the event. * Must not be <code>null</code>. * @param message The message to send. Should not be <code>null</code>. * @param priority The priority of the message. */ protected void fireMessageLogged(Task task, String message, int priority) { fireMessageLogged(task, message, null, priority); } /** * Send a "message logged" task level event * to the build listeners for this project. * * @param task The task generating the event. * Must not be <code>null</code>. * @param message The message to send. Should not be <code>null</code>. * @param throwable The exception that caused this message. May be <code>null</code>. * @param priority The priority of the message. * @since 1.7 */ protected void fireMessageLogged(Task task, String message, Throwable throwable, int priority) { BuildEvent event = new BuildEvent(task); event.setException(throwable); fireMessageLoggedEvent(event, message, priority);
void fireMessageLogged(Project project, String message, int priority) { fireMessageLogged(project, message, null, priority); } /** * Send a "message logged" project level event * to the build listeners for this project. * * @param project The project generating the event. * Should not be <code>null</code>. * @param message The message to send. Should not be <code>null</code>. * @param throwable The exception that caused this message. May be <code>null</code>. * @param priority The priority of the message. * @since 1.7 */ protected void fireMessageLogged(Project project, String message, Throwable throwable, int priority) { BuildEvent event = new BuildEvent(project); event.setException(throwable); fireMessageLoggedEvent(event, message, priority); } /** * Send a "message logged" target level event * to the build listeners for this project. * * @param target The target generating the event. * Must not be <code>null</code>. * @param message The message to send. Should not be <code>null</code>. * @param priority The priority of the message. */ protected void fireMessageLogged(Target target, String message, int priority) { fireMessageLogged(target, message, null, priority); } /** * Send a "message logged" target level event * to the build listeners for this project. * * @param target The target generating the event. * Must not be <code>null</code>. * @param message The message to send. Should not be <code>null</code>. * @param throwable The exception that caused this message. May be <code>null</code>. * @param priority The priority of the message. * @since 1.7 */ protected void fireMessageLogged(Target target, String message, Throwable throwable, int priority) { BuildEvent event = new BuildEvent(target); event.setException(throwable); fireMessageLoggedEvent(event, message, priority);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/Project.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/Project.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void fireMessageLogged(Target target, String message,
1
void fireMessageLogged(Project project, String message,
2
                                     int priority) {
2
                                     int priority) {
3
        fireMessageLogged(target, message, null, priority);
3
        fireMessageLogged(project, message, null, priority);
4
    }
4
    }
5
    /**
5
    /**
6
     * Send a "message logged" target level event
6
     * Send a "message logged" project level event
7
     * to the build listeners for this project.
7
     * to the build listeners for this project.
8
     *
8
     *
9
     * @param target   The target generating the event.
9
     * @param project  The project generating the event.
10
     *                 Must not be <code>null</code>.
10
     *                 Should not be <code>null</code>.
11
     * @param message  The message to send. Should not be <code>null</code>.
11
     * @param message  The message to send. Should not be <code>null</code>.
12
     * @param throwable The exception that caused this message. May be <code>null</code>.
12
     * @param throwable The exception that caused this message. May be <code>null</code>.
13
     * @param priority The priority of the message.
13
     * @param priority The priority of the message.
14
     * @since 1.7
14
     * @since 1.7
15
     */
15
     */
16
    protected void fireMessageLogged(Target target, String message,
16
    protected void fireMessageLogged(Project project, String message,
17
            Throwable throwable, int priority) {
17
            Throwable throwable, int priority) {
18
        BuildEvent event = new BuildEvent(target);
18
        BuildEvent event = new BuildEvent(project);
19
        event.setException(throwable);
19
        event.setException(throwable);
20
        fireMessageLoggedEvent(event, message, priority);
20
        fireMessageLoggedEvent(event, message, priority);
21
    }
21
    }
22
    /**
22
    /**
23
     * Send a "message logged" task level event
23
     * Send a "message logged" target level event
24
     * to the build listeners for this project.
24
     * to the build listeners for this project.
25
     *
25
     *
26
     * @param task     The task generating the event.
26
     * @param target   The target generating the event.
27
     *                 Must not be <code>null</code>.
27
     *                 Must not be <code>null</code>.
28
     * @param message  The message to send. Should not be <code>null</code>.
28
     * @param message  The message to send. Should not be <code>null</code>.
29
     * @param priority The priority of the message.
29
     * @param priority The priority of the message.
30
     */
30
     */
31
    protected void fireMessageLogged(Task task, String message,
31
    protected void fireMessageLogged(Target target, String message,
32
 int priority) {
32
                                     int priority) {
33
        fireMessageLogged(task, message, null, priority);
33
        fireMessageLogged(target, message, null, priority);
34
    }
34
    }
35
    /**
35
    /**
36
     * Send a "message logged" task level event
36
     * Send a "message logged" target level event
37
     * to the build listeners for this project.
37
     * to the build listeners for this project.
38
     *
38
     *
39
     * @param task     The task generating the event.
39
     * @param target   The target generating the event.
40
     *                 Must not be <code>null</code>.
40
     *                 Must not be <code>null</code>.
41
     * @param message  The message to send. Should not be <code>null</code>.
41
     * @param message  The message to send. Should not be <code>null</code>.
42
     * @param throwable The exception that caused this message. May be <code>null</code>.
42
     * @param throwable The exception that caused this message. May be <code>null</code>.
43
     * @param priority The priority of the message.
43
     * @param priority The priority of the message.
44
     * @since 1.7
44
     * @since 1.7
45
     */
45
     */
46
    protected void fireMessageLogged(Task task, String message,
46
    protected void fireMessageLogged(Target target, String message,
47
            Throwable throwable, int priority) {
47
            Throwable throwable, int priority) {
48
        BuildEvent event = new BuildEvent(task);
48
        BuildEvent event = new BuildEvent(target);
49
        event.setException(throwable);
49
        event.setException(throwable);
50
        fireMessageLoggedEvent(event, message, priority);
50
        fireMessageLoggedEvent(event, message, priority);
51
    
51
    
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0