I need PMD for processing the following statements using XPath.
1.before end of most outer try block there must be fillTrasactionStatus()
2.most outer try should have two catch with fatalException
& throwable
, having logException
and fillTransactioStatus()
3.Interaction.begin()
& fetchTransactionStatus()
should be the first (This should be in their start of every public method exposed via interface)
My approach for the 1st question was...
//PrimaryPrefix [Name[@Image='fillTransactionStatus']]
[ancestor::TryStatement]
But how do I ensure that its for the outermost try block.
Please Help.