New macro for conversion to jboolean

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: P4
    • 9
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      We need a new macro, which simplify conversion to jboolean. It will be useful for fixing parfait warnings.

      #define TO_JBOOLEAN(obj) (jboolean) ((obj) ? JNI_TRUE : JNI_FALSE)
      or
      #define JNU_TO_JBOOLEAN(obj) (jboolean) ((obj) ? JNI_TRUE : JNI_FALSE)
      or
      #define IS_TRUE(obj) ((obj) ? JNI_TRUE : JNI_FALSE)

            Assignee:
            Sergey Bylokhov
            Reporter:
            Sergey Bylokhov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: