<?xml version="1.0" encoding="UTF-8"?>
<pmd-cpd>
<duplication lines="71" tokens="189">
<file line="266" path="C:\Workspace\STRUTS_1_3_BRANCH\core\src\main\java\org\apache\struts\mock\MockPageContext.java"/>
<file line="411" path="C:\Workspace\STRUTS_1_3_BRANCH\core\src\main\java\org\apache\struts\mock\MockPageContext.java"/>
<codefragment>
<![CDATA[
                    public void print(String s)
                        throws IOException {
                        checkAndThrow();
                    }

                    public void print(Object obj)
                        throws IOException {
                        checkAndThrow();
                    }

                    public void println()
                        throws IOException {
                        checkAndThrow();
                    }

                    public void println(boolean x)
                        throws IOException {
                        checkAndThrow();
                    }

                    public void println(char x)
                        throws IOException {
                        checkAndThrow();
                    }

                    public void println(int x)
                        throws IOException {
                        checkAndThrow();
                    }

                    public void println(long x)
                        throws IOException {
                        checkAndThrow();
                    }

                    public void println(float x)
                        throws IOException {
                        checkAndThrow();
                    }

                    public void println(double x)
                        throws IOException {
                        checkAndThrow();
                    }

                    public void println(char[] x)
                        throws IOException {
                        checkAndThrow();
                    }

                    public void println(String x)
                        throws IOException {
                        checkAndThrow();
                    }

                    public void println(Object x)
                        throws IOException {
                        checkAndThrow();
                    }

                    public void clear()
                        throws IOException {
                        checkAndThrow();
                    }

                    public void clearBuffer()
                        throws IOException {
                        checkAndThrow();
                    }

                    public void close()
]]>
</codefragment>
</duplication>
<duplication lines="46" tokens="124">
<file line="226" path="C:\Workspace\STRUTS_1_3_BRANCH\core\src\main\java\org\apache\struts\mock\MockPageContext.java"/>
<file line="366" path="C:\Workspace\STRUTS_1_3_BRANCH\core\src\main\java\org\apache\struts\mock\MockPageContext.java"/>
<codefragment>
<![CDATA[
                    public void writeOut(Writer out)
                        throws IOException {
                        checkAndThrow();
                    }

                    public void newLine()
                        throws IOException {
                        checkAndThrow();
                    }

                    public void print(boolean b)
                        throws IOException {
                        checkAndThrow();
                    }

                    public void print(char c)
                        throws IOException {
                        checkAndThrow();
                    }

                    public void print(int i)
                        throws IOException {
                        checkAndThrow();
                    }

                    public void print(long l)
                        throws IOException {
                        checkAndThrow();
                    }

                    public void print(float f)
                        throws IOException {
                        checkAndThrow();
                    }

                    public void print(double d)
                        throws IOException {
                        checkAndThrow();
                    }

                    public void print(char[] s)
                        throws IOException {
                        checkAndThrow();
                    }

                    public void print(String s)
]]>
</codefragment>
</duplication>
<duplication lines="17" tokens="100">
<file line="206" path="C:\Workspace\STRUTS_1_3_BRANCH\core\src\main\java\org\apache\struts\action\ActionMessages.java"/>
<file line="274" path="C:\Workspace\STRUTS_1_3_BRANCH\core\src\main\java\org\apache\struts\action\ActionMessages.java"/>
<codefragment>
<![CDATA[
        if (messages.isEmpty()) {
            return Collections.EMPTY_LIST.iterator();
        }

        ArrayList results = new ArrayList();
        ArrayList actionItems = new ArrayList();

        for (Iterator i = messages.values().iterator(); i.hasNext();) {
            actionItems.add(i.next());
        }

        // Sort ActionMessageItems based on the initial order the
        // property/key was added to ActionMessages.
        Collections.sort(actionItems, ACTION_ITEM_COMPARATOR);

        for (Iterator i = actionItems.iterator(); i.hasNext();) {
            ActionMessageItem ami = (ActionMessageItem) i.next();
]]>
</codefragment>
</duplication>
</pmd-cpd>