Showing 4,841 of 7,782 total issues
Method containsValue
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public boolean containsValue(Object value) {
Entry[] tab = this.table;
if (value == null) {
for (int i = tab.length; i-- > 0;) {
Method doValidateSaveEvent
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private boolean doValidateSaveEvent(Component comp, SavePropertyBinding binding, Event evt, Set<Property> notifys) {
//for a single binding, if it doesn't need to do validation, then we don't need to anything.
if (binding.hasValidator()) {
final BindContext ctx = BindContextUtil.newBindContext(_binder, binding, true, null, binding.getComponent(),
evt);
Method writeObject
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private synchronized void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
s.defaultWriteObject();
boolean written = false;
if (_sortAsc instanceof RowComparator) {
Method afterUnmarshal
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void afterUnmarshal(int cnt, int cntSel) {
if (cnt != 0) {
for (Component child : getChildren()) {
if (child instanceof Treecols) {
_treecols = (Treecols) child;
Method fixGroupsInfoAfterInsert
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void fixGroupsInfoAfterInsert(Row newItem) {
if (_isReplacingRow) //@see Grid.Renderer#render
return; //called by #insertBefore(), skip handling GroupInfo
if (newItem instanceof Group) {
Method updateVisibleCount
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void updateVisibleCount(Row row, boolean isRemove) {
if (row instanceof Group || row.isVisible()) {
final Group g = getGroup(row.getIndex());
// We shall update the number of the visible item in the following cases.
Method renderProperties
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) throws java.io.IOException {
super.renderProperties(renderer);
render(renderer, "_value", marshall(_value));
//ZK-658: we have to render the value before constraint
Function _respFailure
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function _respFailure(response: Response, reqInf: AuRequestInfo, rstatus: number): boolean {
var eru = zAu._errURIs['' + rstatus];
if (typeof eru == 'string') {
zUtl.go(eru);
return true;
Function diff
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function diff(input, units, asFloat) {
var that, zoneDelta, output;
if (!this.isValid()) {
return NaN;
Function doCmdsNow
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function doCmdsNow(cmds: AuCommands): boolean {
var rtags = cmds.rtags || {}, ex: undefined | Error;
try {
while (cmds && cmds.length) {
if (zk.mounting) return false;
Function tabbox$mold$
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tabbox$mold$(out) {
var icon = this.$s('icon'),
uuid = this.uuid,
tabscroll = this.isTabscroll(),
tabs = this.tabs,
Function CallExpression
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
CallExpression(node) {
const { parent, callee } = node;
if (callee.type !== AST_NODE_TYPES.ArrowFunctionExpression &&
callee.type !== AST_NODE_TYPES.FunctionExpression
Function ensureInternal
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ensureInternal(node: PropertyNameNonComputedNode, docComment: DocComment, tsdoc: TextRange): void {
const name = getPropertyNameNonComputed(node);
const isAnnotatedInternal = docComment.modifierTagSet.isInternal();
if (name.startsWith('_')) {
if (!isAnnotatedInternal) {
Method toString
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static final String toString(Object o) {
if (o == null) return null;
if (o instanceof Date) return DateFormats.format((Date)o, false);
if (o instanceof Class) {
final Class cls = (Class)o;
Method checkAdd
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void checkAdd(Item newVal, Item other, boolean replace) {
//allowed type?
if (!(newVal instanceof Element) && !(newVal instanceof Text)
&& !(newVal instanceof CData) && !(newVal instanceof Comment)
&& !(newVal instanceof EntityReference) && !(newVal instanceof Binary)
Method doGet
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
Servlets.getBrowser(request); //update request info
final String path = Https.getThisServletPath(request);
Method initialise
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static String initialise(Token currentToken,
int[][] expectedTokenSequences,
String[] tokenImage) {
String eol = System.getProperty("line.separator", "\n");
StringBuffer expected = new StringBuffer();
Method coerceToCollection
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@SuppressWarnings({ "rawtypes", "unchecked" })
private static Object coerceToCollection(Object obj, Class<?> type) {
if(obj==null) return null;
// since 8.0.0 support proxy form binding
if (ProxyFactory.isProxyClass(type)) {
Method render
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void render(final Treeitem treeItem, B70_ZK_2460_ContactTreeNode treeNode, int index) throws Exception {
B70_ZK_2460_ContactTreeNode ctn = treeNode;
B70_ZK_2460_Contact B70_ZK_2460_Contact = (B70_ZK_2460_Contact) ctn.getData();
final Treerow dataRow = new Treerow();
dataRow.setParent(treeItem);
Method isAnnotation
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static boolean isAnnotation(String val) {
int len = val.length();
if (len >= 4) {
len = (val = val.trim()).length();
if (len >= 4 && val.charAt(0) == '@') {