Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-761

IOCase.isCaseSensitive(IOCase) result is backward

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.10.0, 2.11.0
    • 2.12.0
    • None
    • None

    Description

      When the argument is IOCase.SENSITIVE, I think the static method isCaseSensitive should return true.

      I did the following test with the code.

      public void testIsCaseSensitive() {
        // return true. I think it is right.
        boolean b1 = IOCase.SENSITIVE.isCaseSensitive();
        System.out.println(b1);
      
        // but invoke static method and return false.
        boolean b2 = IOCase.isCaseSensitive(IOCase.SENSITIVE);
        System.out.println(b2);
      }

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            codeferry David Huang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: