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);
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(Task task, String message,
1
void fireMessageLogged(Project project, String message,
2
 int priority) {
2
                                     int priority) {
3
        fireMessageLogged(task, message, null, priority);
3
        fireMessageLogged(project, message, null, priority);
4
    }
4
    }
5
    /**
5
    /**
6
     * Send a "message logged" task 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 task     The task 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(Task task, 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(task);
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
    
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