ron
03/08/2017, 2:42 PMprivate val cipher: Cipher
@Throws(NoSuchAlgorithmException::class, NoSuchProviderException::class, NoSuchPaddingException::class)
get() = Cipher.getInstance("AES/CBC/PKCS5Padding", "SunJCE")
ron
03/08/2017, 2:43 PMCipher cipher = getCipher()
ron
03/08/2017, 2:43 PMval cipher = cipher
looks weird 🙂ron
03/08/2017, 2:44 PMron
03/08/2017, 2:44 PMkeepassFX.utils.EncryptionException: java.lang.IllegalStateException: Cipher not initialized
edvin
03/08/2017, 2:53 PMedvin
03/08/2017, 3:52 PMaddClass
with the type safe classes, even for pseudoclasses. It will automatically detect pseudo classes and do the right thing. @Ruckus do you think we should add a addPseudoClass(cssRule)
to avoid any confusion?nimakro
03/08/2017, 3:53 PMedvin
03/08/2017, 3:53 PMhasItem
defined in your stylesheet?nimakro
03/08/2017, 3:57 PMval hasItem by csspseudoclass()
edvin
03/08/2017, 3:59 PMaddPseudoClass("hasItem")
to addClass(hasItem)
?nimakro
03/08/2017, 4:01 PMaddClass(ApplicationStyle.hasItem)
it works.nimakro
03/08/2017, 4:02 PMaddPseudoClass(String)
Version?edvin
03/08/2017, 4:12 PMedvin
03/08/2017, 4:31 PMRuckus
03/08/2017, 5:09 PMval hasItem by csspseudoclass(snakeCase = false)
to make the name "hasItem"Ruckus
03/08/2017, 5:10 PMaddPseudoClass(ApplicationStyle.hasItem.name)
to make sure you use the generated name (and be safe against refactoring)Ruckus
03/08/2017, 5:11 PMRuckus
03/08/2017, 5:14 PMedvin
03/08/2017, 5:19 PMnimakro
03/08/2017, 5:25 PMaddClass
since it can handle both 😉Ruckus
03/08/2017, 5:27 PMedvin
03/08/2017, 5:27 PMron
03/08/2017, 10:34 PMval browserKey = repository.getKeyFromBrowser(browserId) ?: return BAD_REQUEST
Ruckus
03/08/2017, 11:31 PMedvin
03/09/2017, 7:22 AMgetMightBeNull() ?: throw Exception("Need a value")
edvin
03/09/2017, 7:23 AMedvin
03/09/2017, 7:26 AMron
03/09/2017, 7:49 AM