@@ -29,8 +29,8 @@ public abstract class AbstractBrokerReportFactory implements BrokerReportFactory
2929 /**
3030 * @param expectedFileNamePattern used for fast report check without input stream reading
3131 */
32- protected boolean canCreate (Pattern expectedFileNamePattern , String excelFileName , InputStream is ) {
33- return expectedFileNamePattern .matcher (excelFileName ).matches ();
32+ protected boolean canCreate (Pattern expectedFileNamePattern , String fileName , InputStream is ) {
33+ return expectedFileNamePattern .matcher (fileName ).matches ();
3434 }
3535
3636 /**
@@ -40,7 +40,7 @@ protected boolean canCreate(Pattern expectedFileNamePattern, String excelFileNam
4040 * @return broker report if can parse or null
4141 * @throws IllegalArgumentException if InputStream is not supports mark
4242 */
43- protected BrokerReport create (String excelFileName ,
43+ protected BrokerReport create (String fileName ,
4444 InputStream is ,
4545 BiFunction <String , InputStream , BrokerReport > brokerReportProvider ) {
4646 if (!is .markSupported ()) {
@@ -50,7 +50,7 @@ protected BrokerReport create(String excelFileName,
5050 is .mark (Integer .MAX_VALUE );
5151 Exception exception = null ;
5252 try {
53- return brokerReportProvider .apply (excelFileName , is );
53+ return brokerReportProvider .apply (fileName , is );
5454 } catch (Exception e ) {
5555 exception = e ;
5656 return null ;
0 commit comments