Articles about: Java

Open letter to Veracode concerning duplicate flaws

UPDATE: This has been mostly resolved for me. I've seen a 80-90% reduction in duplicates. Thank you, Veracode Engineering. I see duplicate flaws in every Veracode scan. CWE-73 External Control of File Name or Path is a particular severe offender. In a given scan, that same flaw appears up to… Read more »

Partial FluentIterable for Salesforce Apex

Guava's FluentIterable is really handy for processing data sets. Having something like it in Apex would be helpful. Read more »

Improved Apex FluentIterable

My previous implementation of FluentIterable would have been difficult to extend beyond filter and transform. I have rewritten it using the Chain of Responsibility pattern to facilitate adding more Guava FluentIterable capabilities in future. Read more »

Bridging multimethod interfaces to functional interfaces

Lamba expression autotyping only works on functional interfaces. A functional interface has a single abstract method. Being able to autotype other interfaces can be useful, but it doesn't come for free. Read more »

Extending Interfaces by combining Default Methods and Lambda Expressions

Java 8 Lambda Expressions and Interface Default Methods can be combined to add methods to existing interfaces. This works somewhat like traits in Scala. Read more »