Swati4star/Images-to-PDF

View on GitHub
app/src/main/java/swati4star/createpdf/util/PDFEncryptionUtility.java

Summary

Maintainability
A
3 hrs
Test Coverage

Method setPassword has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public void setPassword(final String filePath, final DataSetChanged dataSetChanged) {

        mDialog.setTitle(R.string.set_password);
        final View mPositiveAction = mDialog.getActionButton(DialogAction.POSITIVE);
        assert mDialog.getCustomView() != null;

    Method removePassword has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public void removePassword(final String file,
                                   final DataSetChanged dataSetChanged) {
    
            if (!isPDFEncrypted(file))
                return;

      Method removePasswordUsingDefMasterPassword has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          private boolean removePasswordUsingDefMasterPassword(final String file,
                                                               final DataSetChanged dataSetChanged,
                                                               final String[] inputPassword) {
              String finalOutputFile;
              try {

        There are no issues that match your filters.

        Category
        Status