Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for getNewInputs (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/test/java/org/codelibs/fess/dict/synonym/SynonymItemTest.java

        }
    
        @Test
        public void test_defensiveCopy_newInputs() {
            // Test that getNewInputs() returns defensive copy
            SynonymItem item = new SynonymItem(1, new String[] { "a" }, new String[] { "x" });
            item.setNewInputs(new String[] { "p", "q", "r" });
    
            String[] returnedInputs = item.getNewInputs();
    
            // Modifying returned array should not affect original
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 8K bytes
    - Click Count (1)
  2. src/test/java/org/codelibs/fess/dict/mapping/CharMappingItemTest.java

            // Initially null for non-zero id
            assertNull(item.getNewInputs());
    
            // Set new inputs
            String[] newInputs = { "new1", "new2" };
            item.setNewInputs(newInputs);
            assertNotNull(item.getNewInputs());
            assertEquals(2, item.getNewInputs().length);
            assertEquals("new1", item.getNewInputs()[0]);
            assertEquals("new2", item.getNewInputs()[1]);
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 16K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/dict/synonym/SynonymItem.java

        }
    
        /**
         * Gets the new input words.
         * Returns a defensive copy to prevent external modification.
         *
         * @return The new input words (defensive copy).
         */
        public String[] getNewInputs() {
            return newInputs == null ? null : newInputs.clone();
        }
    
        /**
         * Sets the new input words.
         *
         * @param newInputs The new input words.
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 07:09:00 GMT 2025
    - 6K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/dict/mapping/CharMappingItem.java

         * Returns a defensive copy to prevent external modification.
         *
         * @return array of new input sequences (defensive copy), or null if no updates are pending
         */
        public String[] getNewInputs() {
            return newInputs == null ? null : newInputs.clone();
        }
    
        /**
         * Sets the array of new input character sequences for update operations.
         *
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 07:09:00 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/dict/mapping/CharMappingFile.java

                            // update
                            writer.write(item.toLineString());
                            writer.write(Constants.LINE_SEPARATOR);
                            return new CharMappingItem(item.getId(), item.getNewInputs(), item.getNewOutput());
                        }
                        return null;
                    } finally {
                        item.setNewInputs(null);
                        item.setNewOutput(null);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 05:56:45 GMT 2025
    - 15.3K bytes
    - Click Count (0)
Back to Top