Inline function cannot access non-public-API: @PublishedApi vs @Suppress vs @JvmSynthetic

@PublishedApi internal is the intended way of exposing non-public API for use in public inline functions. That @PublishedApi internal member becomes effectively public and its name doesn’t get mangled (if you noticed the opposite, please file a bug). @Suppress(“NON_PUBLIC_CALL_FROM_PUBLIC_INLINE”) is a band-aid workaround in the lack of @PublishedApi based on suppressing an error and therefore … Read more

Eclipse warning about synthetic accessor for private static nested classes in Java?

You can get rid of the warning as follows: package com.example.bugs; public class WeirdInnerClassJavaWarning { private static class InnerClass { protected InnerClass() {} // This constructor makes the warning go away public void doSomething() {} } final private InnerClass anInstance; { this.anInstance = new InnerClass(); this.anInstance.doSomething(); } } As others have said, Eclipse is complaining … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)