Change-Id: Ide610d8209a7072dbcdc4bb7c26fc85cedc6e24f Former-commit-id:18b9d5d163
[formerly7b47ffe362
[formerly 8a66266d3ffa236343f14089d7e7b32c1060f9ea]] Former-commit-id:7b47ffe362
Former-commit-id:4f8900fd23
This commit is contained in:
parent
d63d12821f
commit
74d095524e
1 changed files with 5 additions and 4 deletions
|
@ -134,14 +134,15 @@ public class BinLightningDecoder extends AbstractDecoder {
|
|||
private static DecryptedLightningValidator validator = new DecryptedLightningValidator() {
|
||||
@Override
|
||||
public boolean isValid(byte[] decryptedData) {
|
||||
return BinLightningDecoderUtil.isKeepAliveRecord(decryptedData) == false
|
||||
&& BinLightningDecoderUtil
|
||||
.isLightningDataRecords(decryptedData) == false;
|
||||
return BinLightningDecoderUtil.isKeepAliveRecord(decryptedData)
|
||||
|| BinLightningDecoderUtil
|
||||
.isLightningDataRecords(decryptedData);
|
||||
/*
|
||||
* use this if keep-alive record could be mixed with lightning
|
||||
* records
|
||||
*/
|
||||
// return BinLigntningDecoderUtil.isValidMixedRecordData(decryptedData) == false
|
||||
// return
|
||||
// BinLigntningDecoderUtil.isValidMixedRecordData(decryptedData);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue